Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing import #2336

Merged
merged 10 commits into from
Sep 30, 2024
5 changes: 3 additions & 2 deletions analyzer/windows/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,9 @@ def run(self):
mod_name = name.split(".")[-1]
if mod_name in windows_modules:
mod_name += "_windows"
# if hasattr(self.config, mod_name) and getattr(self.config, mod_name, False):
# log.debug('Imported auxiliary module "%s"', name)
if hasattr(self.config, mod_name) and getattr(self.config, mod_name, False):
__import__(name, globals(), locals(), ["dummy"])
log.debug('Imported auxiliary module "%s"', name)
except ImportError as e:
log.warning('Unable to import the auxiliary module "%s": %s', name, e)

Expand Down