Skip to content

Commit

Permalink
[14.0][FIX] module_analysis: interpret exclude_directories as relativ…
Browse files Browse the repository at this point in the history
…e to module's folder

Backport of PR #3045.
  • Loading branch information
fcayre committed Oct 16, 2024
1 parent 70e199c commit e77ee5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module_analysis/models/ir_module_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e77ee5c

Please sign in to comment.