# -*- coding: utf-8 -*- r"""算法服务入口(P10):`python scripts/algorithm_service.py --host 127.0.0.1 --port 18050`。 放在 `scripts/` 是沿用本仓"服务入口在 scripts/"的约定(与 `static_server.py`、`windscada_serve.py` 一致); **实现**在 `app_algorithmModel/app_algorithmModel_guanlan/service/`(模块化后的归属)。 """ from __future__ import annotations import pathlib import sys ROOT = pathlib.Path(__file__).resolve().parents[1] if str(ROOT) not in sys.path: sys.path.insert(0, str(ROOT)) from app_algorithmModel.app_algorithmModel_guanlan.service.app import main # noqa: E402 if __name__ == '__main__': raise SystemExit(main())