mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-20 15:40:57 +00:00
91f816ac46
git-svn-id: http://svn.pyinstaller.org/trunk@698 8dd32b29-ccff-0310-8a9a-9233e24343b1
10 lines
242 B
Python
10 lines
242 B
Python
import sys,os
|
|
d = "localedata"
|
|
if "_MEIPASS2" in os.environ:
|
|
d = os.path.join(os.environ["_MEIPASS2"], d)
|
|
else:
|
|
d = os.path.join(os.path.dirname(sys.argv[0]), d)
|
|
|
|
import babel.localedata
|
|
babel.localedata._dirname = os.path.abspath(d)
|