Browse Source

don't remove bundle, we might need it

David Rose 16 years ago
parent
commit
3c05002019
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/plugin_npapi/make_osx_bundle.py

+ 4 - 1
direct/src/plugin_npapi/make_osx_bundle.py

@@ -37,6 +37,10 @@ def makeBundle(startDir):
 
     # Generate the bundle directory structure
     rootFilename = Filename(fstartDir, 'bundle')
+
+    if os.path.exists(rootFilename.toOsSpecific()):
+        shutil.rmtree(rootFilename.toOsSpecific())
+
     bundleFilename = Filename(rootFilename, 'nppanda3d.plugin')
     plistFilename = Filename(bundleFilename, 'Contents/Info.plist')
     plistFilename.makeDir()
@@ -71,7 +75,6 @@ def buildDmg(startDir):
         'output' : output.toOsSpecific(),
         }
     os.system(cmd)
-    shutil.rmtree(rootFilename.toOsSpecific())
 
 if __name__ == '__main__':
     try: