]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Revert "Also check for `sys._MEIPASS` before assuming PyInstallerness (#526)"
authorJakob Schnitzer <mail@jakobschnitzer.de>
Thu, 28 Sep 2017 17:17:42 +0000 (19:17 +0200)
committerAarni Koskela <akx@iki.fi>
Mon, 15 Jan 2018 16:50:59 +0000 (18:50 +0200)
This reverts commit 0b34807ab3d9681bb653ac535e0fbc6f0ac3ffbb.

babel/localedata.py

index 4b6d3b68ae60dd0a504d178d18562ff8e614f2cc..ae21547812b0404e22f2ea9ff0b0b74c66cb4a5f 100644 (file)
@@ -22,7 +22,7 @@ from babel._compat import pickle, string_types
 
 
 def get_base_dir():
-    if getattr(sys, 'frozen', False) and getattr(sys, '_MEIPASS', None):
+    if getattr(sys, 'frozen', False):
         # we are running in a |PyInstaller| bundle
         basedir = sys._MEIPASS
     else: