front/xhs-agent-desktop/main.py
2026-07-02 15:52:09 +08:00

27 lines
556 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""OMS 小红书 Agent 桌面端 — 供网页远程调度本机 Chrome 自动化。"""
from __future__ import annotations
import sys
from app.engine_path import ensure_runtime_importable
ensure_runtime_importable()
from app.main_window import run_app
def main() -> int:
if hasattr(sys.stdout, "reconfigure"):
try:
sys.stdout.reconfigure(encoding="utf-8")
except Exception:
pass
return run_app()
if __name__ == "__main__":
raise SystemExit(main())