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()