From d77def64c481214c3abf6128dace6c5347328dc6 Mon Sep 17 00:00:00 2001 From: anti Date: Sat, 11 Apr 2026 19:46:58 -0400 Subject: [PATCH] fix(cli): import Path locally in deploy to fix NameError --- decnet/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decnet/cli.py b/decnet/cli.py index 7e4841d..3bcf73e 100644 --- a/decnet/cli.py +++ b/decnet/cli.py @@ -401,7 +401,8 @@ def deploy( if effective_log_file and not dry_run and not api: import subprocess # noqa: F811 # nosec B404 import sys - _collector_err = Path(effective_log_file).with_suffix(".collector.log") + from pathlib import Path as _Path + _collector_err = _Path(effective_log_file).with_suffix(".collector.log") console.print(f"[bold cyan]Starting log collector[/] → {effective_log_file}") subprocess.Popen( # nosec B603 [sys.executable, "-m", "decnet.cli", "collect", "--log-file", str(effective_log_file)],