From 7b882c394c844bcef2540da153523b2831f4addf Mon Sep 17 00:00:00 2001 From: Lawrence Woestman Date: Sun, 11 May 2025 15:39:49 -0700 Subject: [PATCH] CAM: updated opensbp post to work with current Processor.py --- src/Mod/CAM/Path/Post/scripts/opensbp_post.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Mod/CAM/Path/Post/scripts/opensbp_post.py b/src/Mod/CAM/Path/Post/scripts/opensbp_post.py index 0dadd890e0..45fa861a23 100644 --- a/src/Mod/CAM/Path/Post/scripts/opensbp_post.py +++ b/src/Mod/CAM/Path/Post/scripts/opensbp_post.py @@ -181,9 +181,12 @@ def export(objectslist, filename, argstring): print("done postprocessing.") # Write the output - gfile = pyopen(filename, "w") - gfile.write(final) - gfile.close() + if not filename == "-": + gfile = pyopen(filename, "w") + gfile.write(final) + gfile.close() + + return final def move(command):