fix for packed images
This commit is contained in:
1 parent
b5de8709de
commit
2708c78f8e
3 files changed
+5
-5
No files matched your search
@@ -58,6 +58,6 @@ def resource_path(relative_path):
|
||||
# PyInstaller bundle path
|
||||
base_path = sys._MEIPASS
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.abspath(__file__))
|
||||
base_path = os.path.abspath(".")
|
||||
|
||||
return os.path.join(base_path, relative_path)
|
||||
Reference in new issue
Block a user