Skip to content

Commit

Permalink
Allow blocklist to apply at the module level
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Nov 9, 2023
1 parent 89ec1ff commit 2d44805
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configextractor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def find_venv(path: str) -> str:
parser_site_packages = os.path.join(root, "site-packages")
sys.path.insert(1, parser_site_packages)
break
if block_regex and block_regex.match(module_name):
continue
try:
module = importlib.import_module(module_name)
except Exception as e:
Expand Down

0 comments on commit 2d44805

Please # to comment.