From 5b455fca97006bcfb2ee1267bb61ede7075b964c Mon Sep 17 00:00:00 2001 From: "mike.auty@gmail.com" Date: Mon, 9 Jul 2012 00:48:49 +0000 Subject: [PATCH] Move to the development version of pyinstaller (> 1.5.1). Note, pyinstaller requires a patch to add: importfunc.im_self.path = parent.__path__ to the ImportManager.doimport function in loader/iu.py Without it the volatility.plugins.__path__ change never gets seen by the pyinstaller importer. --- volatility/constants.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/volatility/constants.py b/volatility/constants.py index 1a5be7d2..b2b95be4 100644 --- a/volatility/constants.py +++ b/volatility/constants.py @@ -30,8 +30,7 @@ PLUGINPATH = os.path.dirname(__file__) # If we're in a pyinstaller executable if hasattr(sys, "frozen"): try: - import iu, _mountzlib #pylint: disable=W0611,F0401 - PLUGINPATH = os.environ["_MEIPASS2"] + PLUGINPATH = sys._MEIPASS #pylint: disable-msg=W0212,E1101 except ImportError: pass PLUGINPATH = os.path.join(PLUGINPATH, 'plugins')