refactor: improve file path handling with glob and rglob

This commit is contained in:
Paul Gauthier 2024-10-25 07:49:19 -07:00 committed by Paul Gauthier (aider)
parent f70a82791b
commit a080581329
2 changed files with 9 additions and 12 deletions

View file

@ -714,7 +714,7 @@ class InputOutput:
return "\n".join(read_only_files + editable_files) + "\n"
def get_rel_fname(self, fname, root):
def get_rel_fname(fname, root):
try:
return os.path.relpath(fname, root)
except ValueError: