Skip to content

Commit

Permalink
[12.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

Fixes OCA#3042
  • Loading branch information
fcayre committed Oct 3, 2024
1 parent a591b7a commit 0e53f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module_analysis/models/ir_module_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ def _get_files_to_analyse(
if not path:
return res
for root, dirs, files in os.walk(path, followlinks=True):
if set(Path(root).parts) & set(exclude_directories):
continue
for name in files:
if set(Path(name).parts) & set(exclude_directories):
continue
if name in exclude_files:
continue
filename, file_extension = os.path.splitext(name)
Expand Down

0 comments on commit 0e53f58

Please sign in to comment.