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.") ######################################################################## ##