19 lines
842 B
Python
19 lines
842 B
Python
# -*- coding: utf-8 -*-
|
|||
|
|
"""校验 客服agent/ 目录下全部 HTML 文档结构(复用项目技能脚本)。"""
|
||
|
|
import subprocess
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
PY = r"C:\Users\Zzzzz1\.workbuddy\binaries\python\versions\3.13.12\python.exe"
|
||
|
|
VERIFY = r"C:\Users\Zzzzz1\.workbuddy\skills\project-html-doc-authoring\scripts\verify_html_doc.py"
|
||
|
|
OUT_DIR = Path(r"D:\桌面\金融\客服agent")
|
||
|
|
OUT = Path(r"D:\桌面\金融\_verify_all.txt")
|
||
|
|
|
||
|
|
targets = sorted(OUT_DIR.glob("*.html"))
|
||
|
|
chunks = []
|
||
|
|
for t in targets:
|
||
|
|
p = subprocess.run([PY, VERIFY, str(t)], capture_output=True)
|
||
|
|
chunks.append(f"===== {t.name} (exit {p.returncode}) =====\n"
|
||
|
|
+ p.stdout.decode("utf-8", "replace")
|
||
|
|
+ p.stderr.decode("utf-8", "replace"))
|
||
|
|
OUT.write_text(f"共 {len(targets)} 个 HTML\n\n" + "\n".join(chunks), encoding="utf-8")
|