Browse Source

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

rdb 10 years ago
parent
commit
37509e7c93
1 changed files with 1 additions and 1 deletions
  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())