We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e233a commit e848d30Copy full SHA for e848d30
openroast/utils.py
@@ -15,6 +15,10 @@ def get_resource_filename(resname):
15
# if os.path.exists(path):
16
# return path
17
if hasattr(sys, "frozen"):
18
+ path = os.path.dirname(os.path.abspath(__file__))
19
+ path = os.path.join(path,resname)
20
+ if os.path.exists(path):
21
+ return path
22
exe_path = sys.executable
23
if not isinstance(exe_path, str):
24
exe_path = str(exe_path,sys.getfilesystemencoding())
0 commit comments