mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-20 23:50:56 +00:00
670b7459f6
Fix onedir mode when the executable is not executed from the current directory. git-svn-id: http://svn.pyinstaller.org/trunk@699 8dd32b29-ccff-0310-8a9a-9233e24343b1
4 lines
168 B
Python
4 lines
168 B
Python
import sys,os
|
|
targetdir = os.environ.get("_MEIPASS2", os.path.abspath(os.path.dirname(sys.argv[0])))
|
|
os.environ["MATPLOTLIBDATA"] = os.path.join(targetdir, "mpl-data")
|