diff --git a/src/Mod/CAM/Path/Post/scripts/grbl_post.py b/src/Mod/CAM/Path/Post/scripts/grbl_post.py index 0fd23e2003..a3ab8dbbbc 100755 --- a/src/Mod/CAM/Path/Post/scripts/grbl_post.py +++ b/src/Mod/CAM/Path/Post/scripts/grbl_post.py @@ -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