🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
fix write prd bug
garylin2099a4934403f0a6
diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.pyindex a062ece54..f66d586a3 100644--- a/metagpt/actions/write_prd.py+++ b/metagpt/actions/write_prd.py@@ -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_pathnameoutput_pathname = Path(output_pathname)