We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b07fc8 commit 0104774Copy full SHA for 0104774
1 file changed
src/utils/get_file.py
@@ -5,7 +5,7 @@
5
def resource_path(relative_path):
6
"""Get absolute path to resource, works for dev, PyInstaller and cx_Freeze."""
7
if getattr(sys, "frozen", False):
8
- base_path = path.dirname(sys.executable)
+ base_path = getattr(sys, "_MEIPASS", path.dirname(sys.executable))
9
else:
10
base_path = path.abspath(".")
11
return path.join(base_path, relative_path)
0 commit comments