1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-25 01:41:12 +02:00

Now uses the dependencies to locate modules for printed parts and assemblies.

This commit is contained in:
Chris Palmer
2020-03-12 22:47:27 +00:00
parent 2eef050f60
commit 2210396234
6 changed files with 35 additions and 16 deletions

View File

@@ -137,8 +137,7 @@ def views(target, do_assemblies = None):
# Find all the scad files
#
main_blurb = None
lib_dirs = [path + '/' + lib + '/printed' for path in os.environ['OPENSCADPATH'].split(os.pathsep) for lib in sorted(os.listdir(path))]
for dir in [source_dir, source_dir + '/printed'] + lib_dirs:
for dir in source_dirs(bom_dir):
if os.path.isdir(dir):
for filename in os.listdir(dir):
if filename.endswith('.scad'):