CAM: fix fablin postprocessor always writing to "-" instead of specified file

This commit is contained in:
jffmichi
2025-05-20 05:01:46 +02:00
parent a59fc30d6c
commit 08cba3fa45

View File

@@ -199,9 +199,12 @@ def export(objectslist, filename, argstring):
print("done postprocessing.")
gfile = pyopen(filename, "w")
gfile.write(final)
gfile.close()
if not filename == "-":
gfile = pyopen(filename, "w")
gfile.write(final)
gfile.close()
return final
def linenumber():