Update rrf_post.py

This commit is contained in:
P-C-R
2021-11-15 08:20:06 +01:00
committed by GitHub
parent 1c55e0be93
commit 698fe21c0f

View File

@@ -595,12 +595,12 @@ def parse(pathobj):
out += linenumber() + '(Begin toolchange)\n'
if OUTPUT_TOOL_CHANGE:
for line in TOOL_CHANGE.splitlines(True):
out += linenumber() + line + '\n'
outlist[0] = ' '
outlist[-1] =('T' + str(int(c.Parameters['T'])))
if not OUTPUT_TOOL_CHANGE and OUTPUT_COMMENTS:
for line in TOOL_CHANGE.splitlines(True):
out += linenumber() + line + '\n'
# next 2 lines could also be replaced by a single line as "outlist = []"
outlist[0] = ' '
outlist[-1] = ' '