mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2024-06-16 02:57:25 -04:00
Allow to start from bin/
This commit is contained in:
parent
ccea55430b
commit
6ad95232eb
|
@ -20,9 +20,9 @@ import os
|
|||
import sys
|
||||
import signal
|
||||
|
||||
if os.path.isdir(os.path.join(".", "src")) and os.path.isfile(
|
||||
os.path.join(".", "setup.py")):
|
||||
sys.path.insert(0, os.path.realpath("src"))
|
||||
if os.path.isdir(os.path.join("..", "src")) and os.path.isfile(
|
||||
os.path.join("..", "setup.py")):
|
||||
sys.path.insert(0, os.path.realpath(os.path.join("..", "src")))
|
||||
|
||||
try:
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
|
Loading…
Reference in a new issue