OpenSCAD: close csg file and allow unlink to fail
This commit is contained in:
parent
8589894691
commit
1ea6fb9c54
|
@ -224,7 +224,11 @@ class AddSCADTask:
|
|||
else:
|
||||
import importCSG
|
||||
importCSG.insert(tmpfilename,doc.Name)
|
||||
try:
|
||||
os.unlink(tmpfilename)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
except OpenSCADUtils.OpenSCADError, e:
|
||||
FreeCAD.Console.PrintError(e.value)
|
||||
|
||||
|
|
|
@ -139,8 +139,10 @@ def processcsg(filename):
|
|||
# Swap statements to enable Parser debugging
|
||||
#result = parser.parse(f.read(),debug=1)
|
||||
result = parser.parse(f.read())
|
||||
if printverbose: print 'End Parser'
|
||||
if printverbose: print result
|
||||
f.close()
|
||||
if printverbose:
|
||||
print 'End Parser'
|
||||
print result
|
||||
FreeCAD.Console.PrintMessage('End processing CSG file\n')
|
||||
doc.recompute()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user