From 40e649147620d9c2fe43f372aae122aa88ee2684 Mon Sep 17 00:00:00 2001 From: liaoyl830 <267396060+liaoyl830@users.noreply.github.com> Date: Mon, 8 Jun 2026 23:33:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98=20#?= =?UTF-8?q?173?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/plotpilot.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/plotpilot.bat b/tools/plotpilot.bat index 08c9fdec..53db0530 100644 --- a/tools/plotpilot.bat +++ b/tools/plotpilot.bat @@ -187,7 +187,7 @@ for /f "tokens=5" %%a in ('netstat -ano 2^>nul ^| findstr ":8006 .*LISTENING"') :: ② 用 start "" 把 GUI 进程彻底分离,bat 不等待 :: ③ bat 立即 exit,黑框消失,GUI 独立存活 -:: 安全提取目录(%~dpI 处理带空格/特殊字符的路径极其稳健) +:: 安全提取 Python 所在目录(兼容带空格/特殊字符的路径) for %%I in ("%PYTHON_EXE%") do set "PYTHON_DIR=%%~dpI" set "PYTHONW_EXE=%PYTHON_DIR%pythonw.exe"