Browse Source

support deleting if requested

David Rose 12 years ago
parent
commit
98174d62db
1 changed files with 4 additions and 1 deletions
  1. 4 1
      makepanda/makepandacore.py

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