From 3d5b1ad379475c81252dec01ef85c66963cbe10e Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Thu, 19 Jan 2023 21:35:53 +0100 Subject: [PATCH] second attempt at using --- rttk/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rttk/run.py b/rttk/run.py index 9c55438..5dc2980 100644 --- a/rttk/run.py +++ b/rttk/run.py @@ -23,7 +23,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -import sys, subprocess +import os, sys, subprocess try: import renpy @@ -33,7 +33,7 @@ except: def renpy(args): global in_renpy - command = ['$RENPY_DIR/renpy.sh'] + command = [os.path.join(os.environ['$RENPY_DIR'], 'renpy.sh')] if in_renpy: # cf. launcher/game/project.rpy command = [sys.executable, '-EO', sys.argv[0]]