1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-25 09:51:15 +02:00

Times for parts that no longer exist pruned from build times.

Now shows changes to the total time.
This commit is contained in:
Chris Palmer
2021-02-06 10:39:39 +00:00
parent 4cb324ed37
commit cb30f0c63d
3 changed files with 48 additions and 29 deletions

View File

@@ -72,10 +72,11 @@ def make_parts(target, part_type, parts = None):
#
# Decide which files to make
#
all_parts = bom_to_parts(bom_dir, part_type)
if parts:
targets = list(parts) #copy the list so we dont modify the list passed in
else:
targets = bom_to_parts(bom_dir, part_type)
targets = list(all_parts)
for file in os.listdir(target_dir):
if file.endswith('.' + part_type):
if not file in targets:
@@ -150,4 +151,4 @@ def make_parts(target, part_type, parts = None):
for part in targets:
print("Could not find a module called", part[:-4] + module_suffix, "to make", part)
usage(part_type)
times.print_times()
times.print_times(all_parts)