CAM: fix estlcam postprocessor (#20407)
This commit is contained in:
@@ -327,10 +327,11 @@ def export(objectslist, filename, argstring):
|
||||
|
||||
print("Done postprocessing.")
|
||||
|
||||
# write the file
|
||||
gfile = pyopen(filename, "w")
|
||||
gfile.write(final)
|
||||
gfile.close()
|
||||
if filename != "-":
|
||||
with pyopen(filename, "w") as gfile:
|
||||
gfile.write(final)
|
||||
|
||||
return final
|
||||
|
||||
|
||||
def linenumber():
|
||||
|
||||
Reference in New Issue
Block a user