fixbug: MGX-46

This commit is contained in:
莘权 马 2024-06-05 21:19:59 +08:00
parent 5b8f0331e5
commit 8bb103818b
2 changed files with 5 additions and 2 deletions

View file

@ -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