aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/aux-files
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2024-02-17 10:34:50 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2024-02-25 09:32:49 +0100
commit92d8b4c9598ed32cdb6630433d5914c1ae8b7146 (patch)
tree587e09488eb92476fe68033b9dd2aebcb3b540d0 /gnu/packages/aux-files
parent8d79ed2ec3efcb69c4dcba7faec689eff610865d (diff)
downloadguix-92d8b4c9598ed32cdb6630433d5914c1ae8b7146.tar.gz
guix-92d8b4c9598ed32cdb6630433d5914c1ae8b7146.zip
gnu: renpy: Update to 8.2.0.
* gnu/packages/aux-files/renpy/renpy.in (path-to-saves): Honour RENPY_PATH_TO_SAVES. (path_to_logdir, predefined_searchpath): New procedures. * gnu/packages/game-development.scm (python-renpy): Update to 8.2.0.
Diffstat (limited to 'gnu/packages/aux-files')
-rw-r--r--gnu/packages/aux-files/renpy/renpy.in22
1 files changed, 21 insertions, 1 deletions
diff --git a/gnu/packages/aux-files/renpy/renpy.in b/gnu/packages/aux-files/renpy/renpy.in
index 9115d9aee3..deef297aa2 100644
--- a/gnu/packages/aux-files/renpy/renpy.in
+++ b/gnu/packages/aux-files/renpy/renpy.in
@@ -37,7 +37,27 @@ def path_to_saves(gamedir, save_directory=None):
if not save_directory:
return gamedir + "/saves"
- return os.path.join(os.path.expanduser("~/.renpy"), save_directory)
+ prefix = os.environ.get("RENPY_PATH_TO_SAVES",
+ os.path.expanduser("~/.renpy"))
+
+ return os.path.join(prefix, save_directory)
+
+def path_to_logdir(basedir):
+ return basedir
+
+def predefined_searchpath(commondir):
+ import renpy
+
+ # The default gamedir, in private.
+ searchpath = [ renpy.config.gamedir ]
+
+ if env_searchpath := os.environ.get("RENPY_SEARCHPATH"):
+ searchpath.extend(env_searchpath.split("::"))
+
+ if commondir and os.path.isdir(commondir):
+ searchpath.append(commondir)
+
+ return searchpath
def main():
try: