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')