Improve frozen prep to skip example subdirectories
This commit is contained in:
parent
8048dcb76c
commit
c12c837abd
@ -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…
Reference in New Issue
Block a user