From de419cc0b473f8c6042b6618eb43a419df58d36d Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 8 Aug 2009 18:32:57 +0000 Subject: [PATCH] Fix small issue on OSX --- makepanda/makepanda.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index b9ee11ee5b..312274240a 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -4122,9 +4122,11 @@ def MakeRuntime(): oscmd("rm -rf %s" % BracketNameWithQuotes(GetOutputDir()+"/tmp/bundle")) MakeDirectory(GetOutputDir()+"/tmp/bundle") CopyTree(GetOutputDir()+"/tmp/bundle/nppanda3d.plugin", plugfile) + if (os.path.exists(GetOutputDir()+"/plugins/nppanda3d.dmg")): + oscmd("rm -rf" + BracketNameWithQuotes(GetOutputDir()+"/plugins/nppanda3d.dmg")) oscmd("hdiutil create -fs HFS+ -srcfolder %s -volname nppanda3d %s" % (GetOutputDir()+"/tmp/bundle", GetOutputDir()+"/plugins/nppanda3d.dmg")) CopyFile(plugindir + os.path.basename(plugfile), GetOutputDir()+"/plugins/nppanda3d.dmg") - oscmd("rm -rf %s" % BracketNameWithQuotes(GetOutputDir()+"/tmp/bundle")) + oscmd("rm -rf " + BracketNameWithQuotes(GetOutputDir()+"/tmp/bundle")) else: plugfile = CalcLocation("nppanda3d.dll", None) CopyFile(plugindir + "nppanda3d.dmg", plugfile)