bugfix in OpenSCADUtils.callopenscad()
it did not return any result if outputfilename was given reported by Keith Sloan
This commit is contained in:
parent
fb48816817
commit
e59e5e5be4
|
@ -109,9 +109,9 @@ def callopenscad(inputfilename,outputfilename=None,outputext='csg',keepname=Fals
|
||||||
else:
|
else:
|
||||||
outputfilename=os.path.join(dir1,'output-%d.%s' % \
|
outputfilename=os.path.join(dir1,'output-%d.%s' % \
|
||||||
(int(time.time()*100) % 1000000,outputext))
|
(int(time.time()*100) % 1000000,outputext))
|
||||||
check_output2([osfilename,'-o',outputfilename, inputfilename],\
|
check_output2([osfilename,'-o',outputfilename, inputfilename],\
|
||||||
stderr=subprocess.STDOUT)
|
stderr=subprocess.STDOUT)
|
||||||
return outputfilename
|
return outputfilename
|
||||||
|
|
||||||
def callopenscadstring(scadstr,outputext='csg'):
|
def callopenscadstring(scadstr,outputext='csg'):
|
||||||
'''create a tempfile and call the open scad binary
|
'''create a tempfile and call the open scad binary
|
||||||
|
|
Loading…
Reference in New Issue
Block a user