Fix handling of Windows paths with spaces
This commit is contained in:
parent
b2c2fc668b
commit
c897060726
|
@ -33,7 +33,7 @@ def read_deps(dname):
|
||||||
deps = []
|
deps = []
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if line.startswith('\t'):
|
if line.startswith('\t'):
|
||||||
dep = line[1 : -1].rstrip(' \\')
|
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']:
|
||||||
deps.append(dep)
|
deps.append(dep)
|
||||||
return deps
|
return deps
|
||||||
|
|
Loading…
Reference in New Issue