Fix for printed directory not present.

This commit is contained in:
Chris Palmer 2020-02-24 23:58:22 +00:00
parent dcb1e74894
commit e9bc300b8d
2 changed files with 99 additions and 97 deletions

View File

@ -86,6 +86,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, source_dir + '/printed', lib_dir]:
if os.path.isdir(dir):
for filename in os.listdir(dir):
if filename[-5:] == ".scad":
#

View File

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