From a73c7cc18937f6c2c13091c3ca0d38c078e4f09c Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 17 Oct 2008 10:08:53 +0000 Subject: [PATCH] Append instead of Write --- 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 14dd061596..238860ee50 100755 --- a/doc/makepanda/makepanda.py +++ b/doc/makepanda/makepanda.py @@ -3605,8 +3605,8 @@ def MakeInstallerOSX(): oscmd("sed -e 's@\\$1@%s@' < direct/src/directscripts/profilepaths-osx.command >> Panda3D-tpl-rw/panda3dpaths.command" % VERSION) oscmd("sed -e 's@model-cache-@# model-cache-@' -e 's@$THIS_PRC_DIR/[.][.]@/Applications/Panda3D/%s@' < built/etc/Config.prc > Panda3D-tpl-rw/Panda3D/%s/etc/Config.prc" % (VERSION, VERSION)) # Append the plugin-path to the Config.prc. - f = open("Panda3D-tpl-rw/Panda3D/%s/etc/Config.prc" % VERSION, "w") - f.write("plugin-path /Applications/Panda3D/%s/lib\n\n" % VERSION) + f = open("Panda3D-tpl-rw/Panda3D/%s/etc/Config.prc" % VERSION, "a") + f.write("\nplugin-path /Applications/Panda3D/%s/lib\n" % VERSION) f.close() oscmd("cp built/etc/Confauto.prc Panda3D-tpl-rw/Panda3D/%s/etc/Confauto.prc" % VERSION) oscmd("cp -R built/include Panda3D-tpl-rw/Panda3D/%s/include" % VERSION)