Skip to content

Commit

Permalink
Merge pull request #3277 from BsAtHome/fix_python-missing-backslash
Browse files Browse the repository at this point in the history
Add missing backslash
  • Loading branch information
andypugh authored Jan 12, 2025
2 parents dd48fe2 + 0cba12c commit 7e70293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/motion-logger/basic/test-ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def end_log(logfile_name):
for ngc in glob.glob('*.ngc'):
if ngc == 'reset.ngc': continue

m = re.match('(.*)\.ngc', ngc)
m = re.match('(.*)\\.ngc', ngc)
basename = m.group(1)

c.program_open('reset.ngc')
Expand Down
2 changes: 1 addition & 1 deletion tests/trajectory-planner/circular-arcs/run_all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def axis_open_program(t,f):
e.set_mode(linuxcnc.MODE_AUTO)
sleep(1)
for f in test_files:
if re.search('\.ngc$',f) is not None:
if re.search('\\.ngc$',f) is not None:
print("Loading program {0}".format(f))
e.set_mode(linuxcnc.MODE_AUTO)
sleep(1)
Expand Down

0 comments on commit 7e70293

Please sign in to comment.