Browse Source

setuptools: os.makedirs does not support 'exist_ok' parameter in Python2

Closes #540
LD 7 years ago
parent
commit
1389ada384
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/dist/commands.py

+ 2 - 1
direct/src/dist/commands.py

@@ -1347,7 +1347,8 @@ class bdist_apps(setuptools.Command):
 
         platforms = build_cmd.platforms
         build_base = os.path.abspath(build_cmd.build_base)
-        os.makedirs(self.dist_dir, exist_ok=True)
+        if not os.path.exists(self.dist_dir):
+            os.makedirs(self.dist_dir)
         os.chdir(self.dist_dir)
 
         for platform in platforms: