Merge pull request #2397 from jepler/excluded-mpy-subdirs

preprocess_frozen_modules: exclude subdirs of examples, docs, tests
This commit is contained in:
Dan Halbert 2019-12-17 12:31:08 -05:00 committed by GitHub
commit be644228a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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: