From 37509e7c9364f8bc643fc3fe823f65625eaf10aa Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 23 Nov 2015 23:33:27 +0100 Subject: [PATCH] Fix makepanda --clean option when built dir doesn't exist yet --- makepanda/makepanda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 2803e1cbcb..f53a6a75ba 100755 --- a/makepanda/makepanda.py +++ b/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())