mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
fix qusb2snes launch pathing
This commit is contained in:
@@ -352,10 +352,14 @@ async def snes_connect(ctx : Context, address):
|
|||||||
import os
|
import os
|
||||||
if os.path.isfile(qusb2snes_path):
|
if os.path.isfile(qusb2snes_path):
|
||||||
logging.info(f"Attempting to start {qusb2snes_path}")
|
logging.info(f"Attempting to start {qusb2snes_path}")
|
||||||
|
else:
|
||||||
|
qusb2snes_path = Utils.local_path(qusb2snes_path)
|
||||||
|
if os.path.isfile(qusb2snes_path):
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.Popen(qusb2snes_path, cwd=os.path.dirname(qusb2snes_path))
|
subprocess.Popen(qusb2snes_path, cwd=os.path.dirname(qusb2snes_path))
|
||||||
else:
|
else:
|
||||||
logging.info(f"Attempt to start (Q)Usb2Snes was aborted as path {qusb2snes_path} was not found, please start it yourself if it is not running")
|
logging.info(
|
||||||
|
f"Attempt to start (Q)Usb2Snes was aborted as path {qusb2snes_path} was not found, please start it yourself if it is not running")
|
||||||
|
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user