From 3d7dc1fb218ec73bb4c095e70d5ccab161563d28 Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 31 Oct 2018 00:03:39 +0000 Subject: [PATCH] Add more debugging for plugin paths. --- volatility/framework/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/volatility/framework/__init__.py b/volatility/framework/__init__.py index cab223d95..6e93fb9bb 100644 --- a/volatility/framework/__init__.py +++ b/volatility/framework/__init__.py @@ -6,7 +6,7 @@ import os import sys import typing -from volatility.framework import interfaces +from volatility.framework import interfaces, constants # ## # @@ -88,6 +88,8 @@ def import_files(base_module, ignore_errors = False) -> typing.List[str]: failures = [] if not isinstance(base_module.__path__, list): raise TypeError("[base_module].__path__ must be a list of paths") + vollog.log(constants.LOGLEVEL_VVVV, + "Importing from the following paths: {}".format(", ".join(base_module.__path__))) for path in base_module.__path__: for root, _, files in os.walk(path, followlinks = True): # TODO: Figure out how to import pycache files