Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fixbug: _init_python_folder

莘权 马67117b9fe7be
diff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.py
index c7e281f32..d9d0e8b70 100644
--- a/metagpt/roles/engineer.py
+++ b/metagpt/roles/engineer.py
@@ -496,9 +496,9 @@ class Engineer(Role):
filename = Path(i)
if filename.suffix != ".py":
continue
- workdir = self.src_workspace / filename.parent
+ workdir = self.repo.srcs.workdir / filename.parent
if not workdir.exists():
- workdir = self.project_repo.workdir / filename.parent
+ workdir = self.repo.workdir / filename.parent
await init_python_folder(workdir)
async def _is_fixbug(self) -> bool: