mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
handle abs paths on windows
This commit is contained in:
parent
774589b376
commit
2dc01bb9bd
1 changed files with 5 additions and 1 deletions
|
@ -273,7 +273,11 @@ class Commands:
|
||||||
|
|
||||||
all_matched_files = set()
|
all_matched_files = set()
|
||||||
for word in shlex.split(args):
|
for word in shlex.split(args):
|
||||||
fname = Path(self.coder.root) / word
|
if Path(word).is_absolute():
|
||||||
|
fname = Path(word)
|
||||||
|
else:
|
||||||
|
fname = Path(self.coder.root) / word
|
||||||
|
|
||||||
if fname.exists() and fname.is_file():
|
if fname.exists() and fname.is_file():
|
||||||
all_matched_files.add(str(fname))
|
all_matched_files.add(str(fname))
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue