mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-28 02:23:52 +02:00
fixbug: MGX-46
This commit is contained in:
parent
5b8f0331e5
commit
8bb103818b
2 changed files with 5 additions and 2 deletions
|
|
@ -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