blob: 77a488a6bc8fb3031bd1eb3491f214e63eaeaea0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- a/src/mcp_agent_mail/cli.py
+++ b/src/mcp_agent_mail/cli.py
@@ -3854,7 +3854,10 @@ class _SnippetSection:
def _project_root() -> Path:
- return Path(__file__).resolve().parents[2]
+ # Check system install location first, then fall back to dev path
+ if Path("/usr/share/mcp-agent-mail/README.md").exists():
+ return Path("/usr/share/mcp-agent-mail")
+ return Path(__file__).resolve().parents[2]
def _extract_readme_section(markers: tuple[str, str]) -> str:
|