mirror of
https://github.com/volatilityfoundation/volatility
synced 2026-06-08 18:04:46 +00:00
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user