Merge branch 'print_search_path' of https://github.com/martinbudden/NopSCADlib into martinbudden-print_search_path

This commit is contained in:
Chris Palmer 2020-02-24 19:02:50 +00:00
commit dcb1e74894
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ def make_parts(target, part_type, parts = None):
#
lib_dir = os.environ['OPENSCADPATH'] + '/NopSCADlib/printed'
module_suffix = '_dxf' if part_type == 'svg' else '_' + part_type
for dir in [source_dir, lib_dir]:
for dir in [source_dir, source_dir + '/printed', lib_dir]:
for filename in os.listdir(dir):
if filename[-5:] == ".scad":
#

View File

@ -124,7 +124,7 @@ def views(target, do_assemblies = None):
#
main_blurb = None
lib_dir = os.environ['OPENSCADPATH'] + '/NopSCADlib/printed'
for dir in [source_dir, lib_dir]:
for dir in [source_dir, source_dir + '/printed', lib_dir]:
for filename in os.listdir(dir):
if filename.endswith('.scad'):
#