From 08cba3fa4555872eb71cf3ceebead68e2b9fb1a8 Mon Sep 17 00:00:00 2001 From: jffmichi <> Date: Tue, 20 May 2025 05:01:46 +0200 Subject: [PATCH] CAM: fix fablin postprocessor always writing to "-" instead of specified file --- src/Mod/CAM/Path/Post/scripts/fablin_post.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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():