os.makedirs has no exist_ok in python2

This commit is contained in:
Thomas Ferreira de Lima
2018-10-05 09:42:42 -04:00
parent 96be601da9
commit b995c67a26
+1 -1
View File
@@ -669,7 +669,7 @@ def DeployBinariesForBundle():
# binary
#-------------------------------------------------------------------
for piDir in [ "db_plugins", "lay_plugins" ]:
os.makedirs( os.path.join( targetDirM, piDir ), exist_ok = True )
os.makedirs( os.path.join( targetDirM, piDir ))
dynamicLinkLibs = glob.glob( os.path.join( MacBinDir, piDir, "*.dylib" ) )
for item in dynamicLinkLibs:
if os.path.isfile(item) and not os.path.islink(item):