mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
fixbug: MGX-46
This commit is contained in:
parent
5b8f0331e5
commit
8bb103818b
2 changed files with 5 additions and 2 deletions
|
|
@ -436,8 +436,6 @@ class Engineer(Role):
|
|||
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:
|
||||
|
|
|
|||
|
|
@ -894,6 +894,11 @@ def get_project_srcs_path(workdir: str | Path) -> Path:
|
|||
|
||||
|
||||
async def init_python_folder(workdir: str | Path):
|
||||
if not workdir:
|
||||
return
|
||||
workdir = Path(workdir)
|
||||
if not workdir.exists():
|
||||
return
|
||||
init_filename = Path(workdir) / "__init__.py"
|
||||
if init_filename.exists():
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue