Raise exception if the OpenSCAD executeable is unavailable

This commit is contained in:
Sebastian Hoogen 2014-06-30 12:26:20 +02:00 committed by wmayer
parent 5374302e93
commit 691fd11286

View File

@ -136,6 +136,8 @@ def callopenscad(inputfilename,outputfilename=None,outputext='csg',keepname=Fals
(tempfilenamegen.next(),outputext))
check_output2([osfilename,'-o',outputfilename, inputfilename])
return outputfilename
else:
raise OpenSCADError('OpenSCAD executeable unavailable')
def callopenscadstring(scadstr,outputext='csg'):
'''create a tempfile and call the open scad binary