diff --git a/doc/scripts/extract_content.py b/doc/scripts/extract_content.py index 3a95bef14d..98c385fd31 100755 --- a/doc/scripts/extract_content.py +++ b/doc/scripts/extract_content.py @@ -111,7 +111,7 @@ def find_content(zephyr_base, src, dest, fnfilter, ignore): for dirpath, dirnames, filenames in os.walk(path.join(zephyr_base, src)): # Limit the rest of the walk to subdirectories that aren't ignored. dirnames[:] = [d for d in dirnames if not - path.join(dirpath, d).startswith(ignore)] + path.normpath(path.join(dirpath, d)).startswith(ignore)] # If the current directory contains no matching files, keep going. sources = fnmatch.filter(filenames, fnfilter)