Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
21 lines
670 B
Diff
21 lines
670 B
Diff
diff --git a/sonota.py b/sonota.py
|
|
index f67128b..9f2752e 100644
|
|
--- a/sonota.py
|
|
+++ b/sonota.py
|
|
@@ -475,14 +475,7 @@ def promptforval(msg):
|
|
return val
|
|
|
|
def resource_path(relative_path):
|
|
- """ Get absolute path to resource, works for dev and for PyInstaller """
|
|
- try:
|
|
- # PyInstaller creates a temp folder and stores path in _MEIPASS
|
|
- base_path = sys._MEIPASS
|
|
- except Exception:
|
|
- base_path = os.path.dirname(sys.argv[0])
|
|
-
|
|
- return os.path.join(base_path, relative_path)
|
|
+ return os.path.join("@out@/share/sonota", relative_path)
|
|
|
|
def checkargs():
|
|
# Make sure all of the binary files that are needed are there
|