rm unnecessary mkdir and fixed a bug

This commit is contained in:
garylin2099 2024-08-05 11:28:43 +08:00
parent 488536aa16
commit d2f5330744
3 changed files with 0 additions and 3 deletions

View file

@ -267,7 +267,6 @@ class WriteDesign(Action):
if not output_pathname:
output_pathname = Path(output_pathname) / "docs" / "sytem_design.json"
output_pathname.mkdir(parents=True, exist_ok=True)
elif not Path(output_pathname).is_absolute():
output_pathname = DEFAULT_WORKSPACE_ROOT / output_pathname
output_pathname = Path(output_pathname)

View file

@ -188,7 +188,6 @@ class WriteTasks(Action):
if not output_pathname:
output_pathname = Path(output_pathname) / "docs" / "project_schedule.json"
output_pathname.mkdir(parents=True, exist_ok=True)
elif not Path(output_pathname).is_absolute():
output_pathname = DEFAULT_WORKSPACE_ROOT / output_pathname
output_pathname = Path(output_pathname)

View file

@ -313,7 +313,6 @@ class WritePRD(Action):
if not output_pathname:
output_pathname = DEFAULT_WORKSPACE_ROOT / "docs" / "prd.json"
output_pathname.parent.mkdir(parents=True, exist_ok=True)
elif not Path(output_pathname).is_absolute():
output_pathname = DEFAULT_WORKSPACE_ROOT / output_pathname
output_pathname = Path(output_pathname)