From 34415c6946a6a32a2d82b4e3eb88c7c3dce7c09a Mon Sep 17 00:00:00 2001 From: jim Date: Thu, 6 Jan 2022 21:06:15 -0800 Subject: [PATCH] use python library 're' instead of 'regex' for portability --- src/Mod/Path/PathScripts/post/grbl_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/post/grbl_post.py b/src/Mod/Path/PathScripts/post/grbl_post.py index a6cc85fca5..1d2c2f29ba 100755 --- a/src/Mod/Path/PathScripts/post/grbl_post.py +++ b/src/Mod/Path/PathScripts/post/grbl_post.py @@ -31,7 +31,7 @@ import argparse import datetime import shlex import PathScripts.PathUtil as PathUtil -import regex +import re TOOLTIP = """ @@ -580,7 +580,7 @@ def parse(pathobj): out += linenumber() + format_outstring(outstring) + "\n" # Check for comments containing machine-specific commands to pass literally to the controller - m = regex.match(r'^\(MC_RUN_COMMAND: ([^)]+)\)$', command) + m = re.match(r'^\(MC_RUN_COMMAND: ([^)]+)\)$', command) if m: raw_command = m.group(1) out += linenumber() + raw_command + "\n"