Skip to content

Commit

Permalink
Also check for sys._MEIPASS before assuming PyInstallerness (python…
Browse files Browse the repository at this point in the history
  • Loading branch information
akx authored Sep 14, 2017
1 parent 1903a2b commit 0b34807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel/localedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


def get_base_dir():
if getattr(sys, 'frozen', False):
if getattr(sys, 'frozen', False) and getattr(sys, '_MEIPASS', None):
# we are running in a |PyInstaller| bundle
basedir = sys._MEIPASS
else:
Expand Down

0 comments on commit 0b34807

Please sign in to comment.