From e9a959e3a70fd221dd35cbb092faa8630373bf77 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 23 May 2020 12:43:37 +0200 Subject: [PATCH] [core] Strip leading slashes from executable path Fixes #42 and launching Hyper Light Drifter --- legendary/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index 40e0d1b..4ff6c6e 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -247,7 +247,8 @@ class LegendaryCore: if user: user_name = user - game_exe = os.path.join(install.install_path, install.executable) + game_exe = os.path.join(install.install_path, + install.executable.replace('\\', '/').lstrip('/')) working_dir = os.path.split(game_exe)[0] params = []