From af57d1ba34312b11e73b53bbc93fbd55873d8959 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 27 Oct 2009 14:56:41 +0000 Subject: [PATCH] Fix error on OSX --- direct/src/plugin_installer/make_installer.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/direct/src/plugin_installer/make_installer.py b/direct/src/plugin_installer/make_installer.py index 6a3baf58b7..d1507d0cab 100755 --- a/direct/src/plugin_installer/make_installer.py +++ b/direct/src/plugin_installer/make_installer.py @@ -74,10 +74,10 @@ Info_plist = """ - CFBundleIdentifier - %(package_id)s - CFBundleShortVersionString - %(version)s + CFBundleIdentifier + %(package_id)s + CFBundleShortVersionString + %(version)s """ @@ -380,8 +380,10 @@ def makeInstaller(): tmproot = "/var/tmp/Panda3D Runtime/" if os.path.exists(tmproot): shutil.rmtree(tmproot) - if os.path.exists("p3d-setup.pkg"): + if os.path.isfile("p3d-setup.pkg"): os.remove("p3d-setup.pkg") + elif os.path.isdir("p3d-setup.pkg"): + shutil.rmtree("p3d-setup.pkg") if not os.path.exists(tmproot): os.makedirs(tmproot) dst_npapi = os.path.join(tmproot, "Library", "Internet Plug-Ins", npapi)