新增功能

This commit is contained in:
Your Name
2026-08-19 17:35:59 +08:00
parent f8c78739e7
commit 05050ff6f3
188 changed files with 18838 additions and 5337 deletions
+12
View File
@@ -0,0 +1,12 @@
from pathlib import Path
p = Path(__file__).resolve().parent / "zhenyang-ai-console.html"
text = p.read_text(encoding="utf-8")
start = text.index(" <script>")
end = text.index("</script>", start) + len("</script>")
new = (
' <script src="qrc:///qtwebchannel/qwebchannel.js"></script>\n'
' <script src="console-app.js"></script>'
)
p.write_text(text[:start] + new + text[end:], encoding="utf-8")
print("patched html", p.stat().st_size)