unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 914a735fa47edd95253ca6ac6c43c1af8b210189 1290 bytes (raw)
name: gnu/packages/aux-files/renpy/renpy.in 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
#! @PYTHON@
# -*- mode: python -*-

from __future__ import print_function

import os
import sys
import warnings

def path_to_common(renpy_base):
    return renpy_base + "/common"

def path_to_saves(gamedir, save_directory=None):
    import renpy

    if save_directory is None:
        save_directory = renpy.config.save_directory
        save_directory = renpy.exports.fsencode(save_directory)

    if not save_directory:
        return gamedir + "/saves"

    return os.path.join(os.path.expanduser("~/.renpy"), save_directory)

def main():
    try:
        import renpy.bootstrap
        import renpy.arguments
    except ImportError:
        print("""Could not import renpy.bootstrap.
Please ensure you decompressed Ren'py correctly, preserving the directory
structure.""", file=sys.stderr)
        raise

    args = renpy.arguments.bootstrap()
    if not args.basedir:
        print("""This Ren'py requires a basedir to launch.
The basedir is the directory, in which .rpy source files or compiled .rpyc files
live -- usually the 'game' subdirectory of a game packaged by Ren'py.

If you want the Ren'py launcher, use \"renpy-launcher\" instead.""",
              file=sys.stderr)
        sys.exit()

    renpy.bootstrap.bootstrap("@RENPY_BASE@")

if __name__ == "__main__":
    main()

debug log:

solving 914a735fa4 ...
found 914a735fa4 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).