mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-02 14:45:17 +02:00
Merge pull request #825 from mannaandpoem/dev_compatible_with_windows_path
fixbug: compatible with windows path
This commit is contained in:
commit
6d60d3210a
2 changed files with 10 additions and 4 deletions
|
|
@ -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), {}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue