Commit 06e6aa6a authored by cobaltcore's avatar cobaltcore
Browse files

Write spline data outside app directory to cope with read-only locations

parent a8ec5283
......@@ -56,7 +56,7 @@ label write:
python hide:
import os
filename = os.path.join(config.basedir, "splinedata.rpy")
filename = os.path.join(os.path.expanduser("~"), "splinedata.rpy")
with open(filename, "w") as f:
f.write("init python:\n")
......@@ -65,7 +65,7 @@ label write:
f.write(" %s,\n" % format(t))
f.write(" ], %.1f, anchors=(0.5, 0.5), repeat=False)\n" % se.delay)
renpy.launch_editor([ "splinedata.rpy" ], 1, transient=1)
renpy.launch_editor([filename], 1, transient=1)
"Information about this spline was written to splinedata.rpy."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment