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.
This commit is contained in:
mike.auty@gmail.com
2012-07-09 00:48:49 +00:00
parent a019abed5d
commit 5b455fca97
+1 -2
View File
@@ -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')