From 02e61b4290b335ab06a8ec66f3e815edbb301945 Mon Sep 17 00:00:00 2001 From: Jacob Magar Date: Sat, 14 Mar 2026 03:50:45 -0400 Subject: [PATCH] refactor(elicitation): use PROJECT_ROOT directly (already a Path) --- unraid_mcp/core/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unraid_mcp/core/setup.py b/unraid_mcp/core/setup.py index 76d3436..e37ac7e 100644 --- a/unraid_mcp/core/setup.py +++ b/unraid_mcp/core/setup.py @@ -8,7 +8,6 @@ them to .env in the server root directory. from __future__ import annotations from dataclasses import dataclass -from pathlib import Path from fastmcp import Context @@ -60,7 +59,7 @@ def _write_env(api_url: str, api_key: str) -> None: Preserves any existing lines that are not UNRAID_API_URL or UNRAID_API_KEY. """ - env_path = Path(PROJECT_ROOT) / ".env" + env_path = PROJECT_ROOT / ".env" existing_lines: list[str] = [] if env_path.exists():