Skip to content

Commit be64422

Browse files
authored
Merge pull request #2397 from jepler/excluded-mpy-subdirs
preprocess_frozen_modules: exclude subdirs of examples, docs, tests
2 parents 20f7fbc + 6a8efa6 commit be64422

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/preprocess_frozen_modules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def copy_and_process(in_dir, out_dir):
3535
# Skip library examples directory and subfolders.
3636
relative_path_parts = Path(root).relative_to(in_dir).parts
3737
if relative_path_parts and relative_path_parts[0] in ['examples', 'docs', 'tests']:
38+
del subdirs[:]
3839
continue
3940

4041
for file in files:

0 commit comments

Comments
 (0)