zmq/libzmq.pyd can't find MSVCR90.dll because it isn't in the same directory as itself or in the current directory.

Just chdir to the pyinstaller temp dir until I fix the libzmq linkage in pyinstaller. Every other pyd is in the same directory as MSVCR.
This commit is contained in:
David Vierra 2015-03-26 05:55:19 -10:00
parent cfb71df84d
commit 6b8cfad0b7

View File

@ -106,6 +106,10 @@ def startup():
setup_logging() setup_logging()
sys.excepthook = excepthook sys.excepthook = excepthook
pyi_tmpdir = getattr(sys, "_MEIPASS", None)
if pyi_tmpdir:
os.chdir(pyi_tmpdir)
import pygments.lexers import pygments.lexers
if hasattr(pygments.lexers, 'newmod'): if hasattr(pygments.lexers, 'newmod'):
# pyinstaller hack - must call before importing from mcedit2 # pyinstaller hack - must call before importing from mcedit2