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

This commit is contained in:
rdb 2015-11-23 23:33:27 +01:00
parent e6b245c56d
commit 37509e7c93

View File

@ -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())