Skip to content

Commit 2469eff

Browse files
committed
fix base path
1 parent 1b4879c commit 2469eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def resource_path(relative_path):
480480
# PyInstaller creates a temp folder and stores path in _MEIPASS
481481
base_path = sys._MEIPASS
482482
except Exception:
483-
base_path = os.path.abspath(".")
483+
base_path = os.path.dirname(sys.argv[0])
484484

485485
return os.path.join(base_path, relative_path)
486486

0 commit comments

Comments
 (0)