Skip to content

Commit 943c503

Browse files
committed
0.3.2
1 parent 9a2fe77 commit 943c503

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/utils/filesystem.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919

2020
def get_application_path():
2121
if sys.platform == 'win32':
22-
if getattr(sys, 'frozen', True):
23-
return os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir))
22+
if getattr(sys, 'frozen', False):
23+
return os.path.dirname(sys.executable)
24+
25+
return os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(sys.executable))))
2426

25-
return os.path.dirname(os.path.abspath(sys.executable))
2627
elif sys.platform == 'linux':
2728
is_in_exe = getattr(sys, 'frozen', False)
2829
if is_in_exe:

0 commit comments

Comments
 (0)