handle abs paths on windows

This commit is contained in:
Paul Gauthier 2023-09-29 16:36:37 -07:00
parent 774589b376
commit 2dc01bb9bd

View file

@ -273,7 +273,11 @@ class Commands:
all_matched_files = set()
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():
all_matched_files.add(str(fname))
continue