os.makedirs has no exist_ok in python2

This commit is contained in:
Thomas Ferreira de Lima 2018-10-04 08:55:09 -04:00
parent 96be601da9
commit b995c67a26
No known key found for this signature in database
GPG Key ID: 43E98870EAA0A86E
1 changed files with 1 additions and 1 deletions

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):