From 61310c50d7792d1ebb0afd1c9320691a039a6497 Mon Sep 17 00:00:00 2001 From: Yussur Mustafa Oraji Date: Mon, 27 Dec 2021 15:29:09 +0100 Subject: [PATCH] Use absolute path when starting SNI Causes reliability issues when relative path is used. --- SNIClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SNIClient.py b/SNIClient.py index 6d7540ea..f6509938 100644 --- a/SNIClient.py +++ b/SNIClient.py @@ -532,9 +532,9 @@ def launch_sni(ctx: Context): snes_logger.info(f"Attempting to start {sni_path}") import sys if not sys.stdout: # if it spawns a visible console, may as well populate it - subprocess.Popen(sni_path, cwd=os.path.dirname(sni_path)) + subprocess.Popen(os.path.abspath(sni_path), cwd=os.path.dirname(sni_path)) else: - subprocess.Popen(sni_path, cwd=os.path.dirname(sni_path), stdout=subprocess.DEVNULL, + subprocess.Popen(os.path.abspath(sni_path), cwd=os.path.dirname(sni_path), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) else: snes_logger.info(