Skip to content

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

fixbug: MGX-46

莘权 马5b8f0331e5e4
diff --git a/metagpt/roles/engineer.py b/metagpt/roles/engineer.py
index d9e375a9a..aced4fca3 100644
--- a/metagpt/roles/engineer.py
+++ b/metagpt/roles/engineer.py
@@ -434,6 +434,10 @@ class Engineer(Role):
if filename.suffix != ".py":
continue
workdir = self.src_workspace / filename.parent
+ if not workdir.exists():
+ workdir = self.project_repo.workdir / filename.parent
+ if not workdir.exists():
+ return
await init_python_folder(workdir)
async def _is_fixbug(self) -> bool: