From dd33333d89bd6992883117cb93d8d9c870cc3a7d Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 31 Oct 2018 00:03:27 +0000 Subject: [PATCH] Make sure volshell is in sync. --- volatility/cli/volshell/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/volatility/cli/volshell/__init__.py b/volatility/cli/volshell/__init__.py index 15a81af01..419c95741 100644 --- a/volatility/cli/volshell/__init__.py +++ b/volatility/cli/volshell/__init__.py @@ -71,10 +71,12 @@ class VolShell(cli.CommandLine): known_args = [arg for arg in sys.argv if arg != '--help' and arg != '-h'] partial_args, _ = parser.parse_known_args(known_args) if partial_args.plugin_dirs: - volatility.plugins.__path__ = partial_args.plugin_dirs.split(";") + constants.PLUGINS_PATH + volatility.plugins.__path__ = [os.path.abspath(p) for p in + partial_args.plugin_dirs.split(";")] + constants.PLUGINS_PATH if partial_args.symbol_dirs: - volatility.symbols.__path__ = partial_args.symbol_dirs.split(";") + constants.SYMBOL_BASEPATHS + volatility.symbols.__path__ = [os.path.abspath(p) for p in + partial_args.symbol_dirs.split(";")] + constants.SYMBOL_BASEPATHS if partial_args.log: file_logger = logging.FileHandler(partial_args.log)