diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2019-09-30 14:23:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-30 14:23:05 -0700 |
| commit | 3ff53a64cbda0a32a5380228127e4fb2ece708b8 (patch) | |
| tree | 5b19aed938ffad846f161f11421e1f46d990a7f1 /tools | |
| parent | 25cefc16a549bde6c0fd98e399258ab9dbe370de (diff) | |
| parent | c12c837abd7663af9fff1ad4327e7d343e3cfffc (diff) | |
Merge pull request #2181 from tannewt/update_frozen
Update frozen modules.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/preprocess_frozen_modules.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/preprocess_frozen_modules.py b/tools/preprocess_frozen_modules.py index bb6959f0d..2199e9d39 100755 --- a/tools/preprocess_frozen_modules.py +++ b/tools/preprocess_frozen_modules.py @@ -32,8 +32,9 @@ def version_string(path=None, *, valid_semver=False): def copy_and_process(in_dir, out_dir): for root, subdirs, files in os.walk(in_dir): - # Skip library examples directories. - if Path(root).name in ['examples', 'docs', 'tests']: + # 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']: continue for file in files: |
