From 3c050020191de957cb4b39397ccf84f54fec9ffd Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 10 Nov 2009 22:30:11 +0000 Subject: [PATCH] don't remove bundle, we might need it --- direct/src/plugin_npapi/make_osx_bundle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/plugin_npapi/make_osx_bundle.py b/direct/src/plugin_npapi/make_osx_bundle.py index 0c6d4af006..97445759f2 100755 --- a/direct/src/plugin_npapi/make_osx_bundle.py +++ b/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: