2
0
Sean Taylor 4 жил өмнө
parent
commit
09df2610d0
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      build.py

+ 2 - 1
build.py

@@ -34,7 +34,8 @@ def clear_dir(dir_path):
         shutil.rmtree(dir_path, ignore_errors=True)
     path = Path(dir_path)
     path.mkdir(parents=True)
-    os.rmdir(dir_path)
+    if os.path.exists(dir_path):
+        os.rmdir(dir_path)
 
 def copy_files(src_dir, dst_dir, match_exp):
     clear_dir(dst_dir)