search for OpenSCAD executable when initalizing WB

This commit is contained in:
Sebastian Hoogen
2013-07-10 16:10:39 +02:00
parent dd6009daaa
commit e52fb98e39
3 changed files with 16 additions and 5 deletions

View File

@@ -32,3 +32,6 @@ openscadfilename = param.GetString('openscadexecutable')
openscadbin = openscadfilename and os.path.isfile(openscadfilename)
if openscadbin:
FreeCAD.addImportType("OpenSCAD Format (*.scad)","importCSG")
FreeCAD.addExportType("OpenSCAD CSG Format (*.csg)","exportCSG")
FreeCAD.addExportType("OpenSCAD Format (*.scad)","exportCSG")