Initial commit of pyinstaller spec. Some changes to path handling to help.

This commit is contained in:
Mike Auty
2018-10-30 23:56:34 +00:00
parent 241b7475fb
commit e3e1c4e00b
5 changed files with 43 additions and 2 deletions
+4 -2
View File
@@ -102,10 +102,12 @@ class CommandLine(interfaces.plugins.FileConsumerInterface):
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)