at 24.05-pre 20 lines 670 B view raw
1diff --git a/sonota.py b/sonota.py 2index f67128b..9f2752e 100644 3--- a/sonota.py 4+++ b/sonota.py 5@@ -475,14 +475,7 @@ def promptforval(msg): 6 return val 7 8 def resource_path(relative_path): 9- """ Get absolute path to resource, works for dev and for PyInstaller """ 10- try: 11- # PyInstaller creates a temp folder and stores path in _MEIPASS 12- base_path = sys._MEIPASS 13- except Exception: 14- base_path = os.path.dirname(sys.argv[0]) 15- 16- return os.path.join(base_path, relative_path) 17+ return os.path.join("@out@/share/sonota", relative_path) 18 19 def checkargs(): 20 # Make sure all of the binary files that are needed are there