From 2b878556fc9ccfc81e3cebb780e2a479e3b5235b Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Sun, 21 Jun 2020 16:00:26 +0100 Subject: [PATCH] Bug fix to platters.scad for last change. --- scripts/plateup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/plateup.py b/scripts/plateup.py index d18b698..797c097 100644 --- a/scripts/plateup.py +++ b/scripts/plateup.py @@ -45,6 +45,7 @@ def plateup(target, part_type, usage = None): # Loop through source directories # used = [] + all_sources = [] for dir in [source_dir1, source_dir2]: if not os.path.isdir(dir): continue @@ -60,6 +61,7 @@ def plateup(target, part_type, usage = None): # Decide which files to make # sources = [file for file in os.listdir(dir) if file.endswith('.scad')] + all_sources += sources # # Run OpenSCAD on the source files to make the targets # @@ -100,7 +102,7 @@ def plateup(target, part_type, usage = None): # # Remove any cruft # - targets = [file[:-4] + part_type for file in sources] + targets = [file[:-4] + part_type for file in all_sources] for file in os.listdir(target_dir): if file.endswith('.' + part_type): if not file in targets and not file in copied: