BIM,CAM: Resolve Python invalid escape sequence warnings

This commit is contained in:
Chris Mayo
2024-11-04 19:22:33 +00:00
committed by Chris Hennes
parent 6b490fc8af
commit cf8355ccb3
3 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ Path.Log.setLevel(Path.Log.Level.INFO, PathCommand.LOG_MODULE)
class TestFileNameGenerator(unittest.TestCase):
"""
r"""
String substitution allows the following:
%D ... directory of the active document
%d ... name of the active document (with extension)

View File

@@ -191,7 +191,7 @@ def _identifygcodeByToolNumberList(filename):
p = re.compile(r"[mM]+?\s?0?6\s?T\d*\s")
# split the gcode on tool changes
paths = re.split("([mM]+?\s?0?6\s?T\d*\s)", gcode)
paths = re.split(r"([mM]+?\s?0?6\s?T\d*\s)", gcode)
# iterate the gcode sections and add customs for each
toolnumber = 0