summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2019-12-17 12:31:08 -0500
committerGitHub <noreply@github.com>2019-12-17 12:31:08 -0500
commitbe644228a24f7ca2bdcdb5d1a716a2f5bff085f8 (patch)
treea650c173285052589593a3d5dd58823e66e3e972 /tools
parent20f7fbc6f519d1456a7500cb38b794923f88fbc5 (diff)
parent6a8efa6ef1b4264daa6e8f1a0623ee6d88a56b9d (diff)
Merge pull request #2397 from jepler/excluded-mpy-subdirs
preprocess_frozen_modules: exclude subdirs of examples, docs, tests
Diffstat (limited to 'tools')
-rwxr-xr-xtools/preprocess_frozen_modules.py1
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: