From 98174d62db6a0b9f5996d86f65119fd4aa9ed91b Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 30 Sep 2013 22:11:52 +0000 Subject: [PATCH] support deleting if requested --- makepanda/makepandacore.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index cdd63fa0ef..ec374c27ab 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -112,10 +112,13 @@ CONFLICTING_FILES=["dtool/src/dtoolutil/pandaVersion.h", "direct/src/plugin_npapi/nppanda3d.rc", "direct/src/plugin_standalone/panda3d.rc"] -def WarnConflictingFiles(): +def WarnConflictingFiles(delete = False): for cfile in CONFLICTING_FILES: if os.path.exists(cfile): print("%sWARNING:%s file may conflict with build: %s%s%s" % (GetColor("red"), GetColor(), GetColor("green"), cfile, GetColor())) + if delete: + os.unlink(cfile) + print("Deleted.") ######################################################################## ##