python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / sonota / set_resource_path.patch
blobf9a802657762844f63e852fffb78672559c84fa8
1 diff --git a/sonota.py b/sonota.py
2 index f67128b..9f2752e 100644
3 --- a/sonota.py
4 +++ b/sonota.py
5 @@ -475,14 +475,7 @@ def promptforval(msg):
6 return val
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])
16 - return os.path.join(base_path, relative_path)
17 + return os.path.join("@out@/share/sonota", relative_path)
19 def checkargs():
20 # Make sure all of the binary files that are needed are there