fix write prd bug

This commit is contained in:
garylin2099 2024-08-04 17:33:22 +08:00
parent dbdfd29cea
commit a4934403f0

View file

@ -313,7 +313,7 @@ class WritePRD(Action):
if not output_pathname:
output_pathname = DEFAULT_WORKSPACE_ROOT / "docs" / "prd.json"
output_pathname.mkdir(parents=True, exist_ok=True)
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)