fix(cli): import Path locally in deploy to fix NameError

This commit is contained in:
2026-04-11 19:46:58 -04:00
parent ce182652ad
commit d77def64c4

View File

@@ -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)],