diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-12-17 10:01:33 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-12-17 10:06:44 -0600 |
| commit | 6a8efa6ef1b4264daa6e8f1a0623ee6d88a56b9d (patch) | |
| tree | a650c173285052589593a3d5dd58823e66e3e972 /tools/preprocess_frozen_modules.py | |
| parent | 20f7fbc6f519d1456a7500cb38b794923f88fbc5 (diff) | |
preprocess_frozen_modules: exclude subdirs of examples, docs, tests
.. this reclaims several kB on CPX, where we really need it.
Diffstat (limited to 'tools/preprocess_frozen_modules.py')
| -rwxr-xr-x | tools/preprocess_frozen_modules.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/preprocess_frozen_modules.py b/tools/preprocess_frozen_modules.py index 2199e9d39..7ae20c4d6 100755 --- a/tools/preprocess_frozen_modules.py +++ b/tools/preprocess_frozen_modules.py @@ -35,6 +35,7 @@ def copy_and_process(in_dir, out_dir): # Skip library examples directory and subfolders. relative_path_parts = Path(root).relative_to(in_dir).parts if relative_path_parts and relative_path_parts[0] in ['examples', 'docs', 'tests']: + del subdirs[:] continue for file in files: |
