From 19794498bbc3ac0cb096868bbdef00fed72f4f19 Mon Sep 17 00:00:00 2001 From: bgbsww Date: Wed, 10 Apr 2024 13:29:44 -0400 Subject: [PATCH] Have grbl_post not write - file like other posts --- src/Mod/CAM/Path/Post/scripts/grbl_post.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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