Improve frozen prep to skip example subdirectories

crypto-aes
Scott Shawcroft 3 years ago
parent 8048dcb76c
commit c12c837abd
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E
  1. 5
      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:

Loading…
Cancel
Save