Merge pull request #13394 from bgbsww/bgbsww-CAMTestsLeaveFile

Have grbl_post not write - file just like other postprocessors
This commit is contained in:
sliptonic
2024-04-15 10:11:48 -06:00
committed by GitHub

View File

@@ -405,9 +405,10 @@ def export(objectslist, filename, argstring):
print("Done postprocessing.")
# write the file
gfile = pythonopen(filename, "w")
gfile.write(final)
gfile.close()
if not filename == "-":
gfile = pythonopen(filename, "w")
gfile.write(final)
gfile.close()
return final