diff --git a/src/Mod/CAM/Path/Post/scripts/fablin_post.py b/src/Mod/CAM/Path/Post/scripts/fablin_post.py index 165fe4df51..87388d9f11 100644 --- a/src/Mod/CAM/Path/Post/scripts/fablin_post.py +++ b/src/Mod/CAM/Path/Post/scripts/fablin_post.py @@ -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():