Skip to content

Commit 0b34807

Browse files
authored
Also check for sys._MEIPASS before assuming PyInstallerness (#526)
Fixes #525
1 parent 1903a2b commit 0b34807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

babel/localedata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
def get_base_dir():
25-
if getattr(sys, 'frozen', False):
25+
if getattr(sys, 'frozen', False) and getattr(sys, '_MEIPASS', None):
2626
# we are running in a |PyInstaller| bundle
2727
basedir = sys._MEIPASS
2828
else:

0 commit comments

Comments
 (0)