Have grbl_post not write - file like other posts

This commit is contained in:
bgbsww
2024-04-10 13:29:44 -04:00
parent c0d8de527a
commit 19794498bb

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