/stls/ and /dxfs/ excluded from deps to prevent circular dependencies.

This commit is contained in:
Chris Palmer 2021-02-08 22:44:21 +00:00
parent 832380f893
commit 055e90cbb3

View File

@ -34,7 +34,7 @@ def read_deps(dname):
for line in lines:
if line.startswith('\t'):
dep = line[1 : -1].rstrip(' \\').replace('\\ ', ' ')
if not os.path.basename(dep) in ['stl.scad', 'dxf.scad', 'svf.scad', 'png.scad', 'target.scad']:
if not os.path.basename(dep) in ['stl.scad', 'dxf.scad', 'svf.scad', 'png.scad', 'target.scad'] and not '/stls/' in dep and not '/dxfs/' in dep:
deps.append(dep)
return deps