Skip to content

Commit 24da652

Browse files
committed
doc: extract_content: Normalize path of ignored folders
Normalize the path of ignored folders so that variations in paths formats on Windows are detected correctly. Signed-off-by: Carles Cufi <[email protected]>
1 parent 66e5ade commit 24da652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/scripts/extract_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def find_content(zephyr_base, src, dest, fnfilter, ignore):
111111
for dirpath, dirnames, filenames in os.walk(path.join(zephyr_base, src)):
112112
# Limit the rest of the walk to subdirectories that aren't ignored.
113113
dirnames[:] = [d for d in dirnames if not
114-
path.join(dirpath, d).startswith(ignore)]
114+
path.normpath(path.join(dirpath, d)).startswith(ignore)]
115115

116116
# If the current directory contains no matching files, keep going.
117117
sources = fnmatch.filter(filenames, fnfilter)

0 commit comments

Comments
 (0)