Browse Source

Append instead of Write

rdb 17 years ago
parent
commit
a73c7cc189
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/makepanda/makepanda.py

+ 2 - 2
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@\\$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))
       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.
       # 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()
       f.close()
       oscmd("cp built/etc/Confauto.prc   Panda3D-tpl-rw/Panda3D/%s/etc/Confauto.prc" % VERSION)
       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)
       oscmd("cp -R built/include         Panda3D-tpl-rw/Panda3D/%s/include" % VERSION)