Browse Source

Remove pkg if it already exists

rdb 16 years ago
parent
commit
536ef4f5f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/plugin_installer/make_installer.py

+ 2 - 0
direct/src/plugin_installer/make_installer.py

@@ -237,6 +237,8 @@ def makeInstaller():
         tmproot = Filename("/var/tmp/Panda3D Runtime/")
         if tmproot.exists():
             shutil.rmtree(tmproot.toOsSpecific())
+        if os.path.exists("p3d-setup.pkg"):
+            os.remove("p3d-setup.pkg")
         tmproot.makeDir()
         dst_npapi = Filename(tmproot, Filename("Library/Internet Plug-Ins", npapi))
         dst_panda3d = Filename(tmproot, Filename("Applications", panda3d))