Skip to content

Commit 6bc276d

Browse files
fcayrelegalsylvain
authored andcommitted
[17.0][FIX] module_analysis: interpret exclude_directories as relative to module's folder
Fixes OCA#3042.
1 parent 9ec5e13 commit 6bc276d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module_analysis/models/ir_module_module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _get_files_to_analyse(
161161
if not path:
162162
return res
163163
for root, _, files in os.walk(path, followlinks=True):
164-
if set(Path(root).parts) & set(exclude_directories):
164+
if set(Path(root).relative_to(path).parts) & set(exclude_directories):
165165
continue
166166
for name in files:
167167
if name in exclude_files:

0 commit comments

Comments
 (0)