bugfix in OpenSCADUtils.callopenscad()

it did not return any result if outputfilename was given
reported by Keith Sloan
This commit is contained in:
Sebastian Hoogen 2013-10-28 06:36:27 +01:00
parent fb48816817
commit e59e5e5be4

View File

@ -109,9 +109,9 @@ def callopenscad(inputfilename,outputfilename=None,outputext='csg',keepname=Fals
else:
outputfilename=os.path.join(dir1,'output-%d.%s' % \
(int(time.time()*100) % 1000000,outputext))
check_output2([osfilename,'-o',outputfilename, inputfilename],\
stderr=subprocess.STDOUT)
return outputfilename
check_output2([osfilename,'-o',outputfilename, inputfilename],\
stderr=subprocess.STDOUT)
return outputfilename
def callopenscadstring(scadstr,outputext='csg'):
'''create a tempfile and call the open scad binary