CAM: fix estlcam postprocessor (#20407)

This commit is contained in:
phaseloop
2025-03-25 09:24:27 +00:00
committed by GitHub
parent 065c1fe0fd
commit 40ace3241a

View File

@@ -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():