Use absolute path when starting SNI

Causes reliability issues when relative path is used.
This commit is contained in:
Yussur Mustafa Oraji 2021-12-27 15:29:09 +01:00 committed by Fabian Dill
parent 6eab838a70
commit 61310c50d7
1 changed files with 2 additions and 2 deletions

View File

@ -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(