From 455afc28373010210c259b58bd0b7b83c90041f7 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 17 Oct 2008 08:25:36 +0000 Subject: [PATCH] more osx stuff (again) --- doc/makepanda/makepanda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/makepanda/makepanda.py b/doc/makepanda/makepanda.py index 0608215a80..14dd061596 100755 --- a/doc/makepanda/makepanda.py +++ b/doc/makepanda/makepanda.py @@ -3625,10 +3625,10 @@ def MakeInstallerOSX(): if ((base != "extensions") and (base != "extensions_native")): compileall.compile_dir("Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/direct/src/"+base) compileall.compile_dir("Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw") - oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/samples") oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/direct") oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/pandac") - oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw") + if os.path.isdir("samples"): oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/samples") + if os.path.isdir("built/Pmw"): oscmd("chmod -R 555 Panda3D-tpl-rw/Panda3D/"+VERSION+"/lib/Pmw") except: # Make sure the dmg gets unmounted even when error occurs oscmd("hdiutil detach Panda3D-tpl-rw -quiet -force") oscmd("rm -f Panda3D-tpl-rw.dmg")