perf: ensure plugin deps on startup (#858)

This commit is contained in:
Junyan Qin
2025-04-13 22:51:21 +08:00
parent c8f331675c
commit d012c1e33d
6 changed files with 24 additions and 8 deletions

View File

@@ -35,6 +35,9 @@ async def main_entry(loop: asyncio.AbstractEventLoop):
await deps.install_deps(missing_deps)
print("已自动安装缺失的依赖包,请重启程序。")
sys.exit(0)
# check plugin deps
await deps.precheck_plugin_deps()
# 检查pydantic版本如果没有 pydantic.v1则把 pydantic 映射为 v1
import pydantic.version