Merge pull request #825 from mannaandpoem/dev_compatible_with_windows_path

fixbug: compatible with windows path
This commit is contained in:
geekan 2024-02-02 15:49:13 +08:00 committed by GitHub
commit 6d60d3210a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -93,7 +93,7 @@ class DependencyFile:
root = self._filename.parent
try:
key = Path(filename).relative_to(root)
key = Path(filename).relative_to(root).as_posix()
except ValueError:
key = filename
return set(self._dependencies.get(str(key), {}))