mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-13 13:17:38 +02:00
Make sure volshell is in sync.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user