diff --git a/module_analysis/models/ir_module_module.py b/module_analysis/models/ir_module_module.py index e61db7cc987..fbc70d3b45e 100644 --- a/module_analysis/models/ir_module_module.py +++ b/module_analysis/models/ir_module_module.py @@ -166,7 +166,7 @@ def _get_files_to_analyse( if not path: return res for root, _, files in os.walk(path, followlinks=True): - if set(Path(root).parts) & set(exclude_directories): + if set(Path(root).relative_to(path).parts) & set(exclude_directories): continue for name in files: if name in exclude_files: