Skip to content

Commit 6a8efa6

Browse files
committed
preprocess_frozen_modules: exclude subdirs of examples, docs, tests
.. this reclaims several kB on CPX, where we really need it.
1 parent 20f7fbc commit 6a8efa6

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)