Fix makepanda --clean option when built dir doesn't exist yet
This commit is contained in:
parent
e6b245c56d
commit
37509e7c93
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue