fix KineticNCBeamicon2_post script crash
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user