mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Use absolute path when starting SNI
Causes reliability issues when relative path is used.
This commit is contained in:

committed by
Fabian Dill

parent
6eab838a70
commit
61310c50d7
@@ -532,9 +532,9 @@ def launch_sni(ctx: Context):
|
|||||||
snes_logger.info(f"Attempting to start {sni_path}")
|
snes_logger.info(f"Attempting to start {sni_path}")
|
||||||
import sys
|
import sys
|
||||||
if not sys.stdout: # if it spawns a visible console, may as well populate it
|
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:
|
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)
|
stderr=subprocess.DEVNULL)
|
||||||
else:
|
else:
|
||||||
snes_logger.info(
|
snes_logger.info(
|
||||||
|
Reference in New Issue
Block a user