fix: tools/diagnostics/check_web_gui_config_sync 路径回归
main 上脚本被迁到 tools/diagnostics/,manifest 被迁到 tools/dev/, 但 ROOT/MANIFEST_PATH 仍按旧位置(tools/ 根、parents[1])计算, 导致脚本运行时报 FileNotFoundError 找不到 gui_app.py。 - ROOT: parents[1] -> parents[2] - MANIFEST_PATH: tools/web_gui_config_manifest.json -> tools/dev/web_gui_config_manifest.json 回归:脚本输出 [OK] WebUI and gui_app.py config keys are synchronized (125 shared keys)。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
96f8600d42
commit
7f33d45df6
1 file changed
+2
-2
@@ -19,10 +19,10 @@ import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
GUI_APP = ROOT / "gui" / "gui_app.py"
|
||||
WEB_INDEX = ROOT / "webui" / "index.html"
|
||||
MANIFEST_PATH = ROOT / "tools" / "web_gui_config_manifest.json"
|
||||
MANIFEST_PATH = ROOT / "tools" / "dev" / "web_gui_config_manifest.json"
|
||||
|
||||
IGNORED_CONTAINER_KEYS = {
|
||||
"debug_captures",
|
||||
|
||||
Reference in new issue
Block a user