preprocess_frozen_modules: exclude subdirs of examples, docs, tests

.. this reclaims several kB on CPX, where we really need it.
This commit is contained in:
Jeff Epler 2019-12-17 10:01:33 -06:00
parent dbab5380b2
commit 1719a14cf0

View File

@ -34,6 +34,7 @@ def copy_and_process(in_dir, out_dir):
# Skip library examples directories.
if Path(root).name in ['examples', 'docs', 'tests']:
del subdirs[:]
continue
for file in files: