Allow to start from bin/

This commit is contained in:
Milan Nikolic 2020-04-10 14:53:52 +02:00
parent ccea55430b
commit 6ad95232eb
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75

View file

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