diff --git a/src/Mod/CAM/Path/Post/scripts/KineticNCBeamicon2_post.py b/src/Mod/CAM/Path/Post/scripts/KineticNCBeamicon2_post.py index a9f0e083dc..8a4698702b 100644 --- a/src/Mod/CAM/Path/Post/scripts/KineticNCBeamicon2_post.py +++ b/src/Mod/CAM/Path/Post/scripts/KineticNCBeamicon2_post.py @@ -56,7 +56,10 @@ KineticNCBeamicon2_post.export(object,"/path/to/file.ncc","") now = datetime.datetime.now() -parser = argparse.ArgumentParser(prog="linuxcnc", add_help=False) +parser = argparse.ArgumentParser( + prog="linuxcnc", + add_help=False, +) parser.add_argument("--no-header", action="store_true", help="suppress header output") parser.add_argument("--no-comments", action="store_true", help="suppress comment output") parser.add_argument("--line-numbers", action="store_true", help="prefix with line numbers") @@ -68,11 +71,11 @@ parser.add_argument( parser.add_argument("--precision", default="3", help="number of digits of precision, default=3") parser.add_argument( "--preamble", - help='set commands to be issued before the first command, default="%\\nG17 G21 G40 G49 G80 G90\\nM08\\n"', + help=r'set commands to be issued before the first command, default="%%\nG17 G21 G40 G49 G80 G90\nM08\n"' ) parser.add_argument( "--postamble", - help='set commands to be issued after the last command, default="M05 M09\\nG17 G90 G80 G40\\nM30\\n"', + help=r'set commands to be issued after the last command, default="M05 M09\nG17 G90 G80 G40\nM30\n"' ) parser.add_argument( "--inches", action="store_true", help="Convert output for US imperial mode (G20)"