mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Append instead of Write
This commit is contained in:
parent
455afc2837
commit
a73c7cc189
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user