Bastien Sevajol il y a 6 ans
Parent
révision
bb543480a3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      synergine2_cocos2d/util.py

+ 2 - 2
synergine2_cocos2d/util.py Voir le fichier

@@ -58,7 +58,7 @@ def ensure_dir_exist(dir_path, clear_dir: bool=False) -> None:
58 58
     :param clear_dir: Remove content of given dir
59 59
     """
60 60
     path_ = Path(dir_path)
61
-    path_.mkdir(parents=False, exist_ok=True)
61
+    path_.mkdir(parents=True, exist_ok=True)
62 62
     if clear_dir:
63 63
         shutil.rmtree(dir_path)
64
-        path_.mkdir(parents=False, exist_ok=True)
64
+        path_.mkdir(parents=True, exist_ok=True)