瀏覽代碼

Fix makepanda --clean option when built dir doesn't exist yet

rdb 10 年之前
父節點
當前提交
37509e7c93
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -322,7 +322,7 @@ def parseopts(args):
     if RUNTIME or not is_win7:
         PkgDisable("TOUCHINPUT")
 
-    if clean_build:
+    if clean_build and os.path.isdir(GetOutputDir()):
         print("Deleting %s" % (GetOutputDir()))
         shutil.rmtree(GetOutputDir())