use when calling renpy

This commit is contained in:
HackerNCoder 2023-01-19 21:29:52 +01:00
parent 16db10d131
commit ea1684d4f4
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ except:
def renpy(args): def renpy(args):
global in_renpy global in_renpy
command = ['renpy.sh'] command = ['$RENPY_DIR/renpy.sh']
if in_renpy: if in_renpy:
# cf. launcher/game/project.rpy # cf. launcher/game/project.rpy
command = [sys.executable, '-EO', sys.argv[0]] command = [sys.executable, '-EO', sys.argv[0]]

View file

@ -68,7 +68,7 @@ def tl2pot(projectpath, outfile='game.pot'):
occurrences[s['text']] = occurrences.get(s['text'], 0) + 1 occurrences[s['text']] = occurrences.get(s['text'], 0) + 1
out = io.open(outfile, 'w', encoding='utf-8') out = io.open(outfile, 'w', encoding='utf-8')
out.write(ur"""msgid "" out.write(r"""msgid ""
msgstr "" msgstr ""
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"