From 3f8e8f893db60c805b66650dc4a7cfd68849e188 Mon Sep 17 00:00:00 2001 From: Rene 'Renne' Bartsch Date: Fri, 10 Jan 2020 11:54:52 +0100 Subject: [PATCH] Refactor if statement Refactor if statement --- src/Mod/Path/PathScripts/post/nccad_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/post/nccad_post.py b/src/Mod/Path/PathScripts/post/nccad_post.py index 1913822513..9f58b101b4 100644 --- a/src/Mod/Path/PathScripts/post/nccad_post.py +++ b/src/Mod/Path/PathScripts/post/nccad_post.py @@ -114,7 +114,7 @@ def export(objectslist, filename, argstring): gcode = dia.editor.toPlainText() # Save to file - if not filename == '-': + if filename != '-': gfile = open(filename, "w") gfile.write(gcode) gfile.close()