AutoRpa/rpa_contract/apa_browser_adapter.py

34 lines
870 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 合同班浏览器适配。复用 rpa_browser 共享适配器。
#
# 本文件只做导入入口,步骤函数仍 from apa_browser_adapter import ApaBrowserAdapter。
# Chrome 用户目录和调试口用共享默认:CONTRACT_CREATE 口 9333。
from __future__ import annotations
import sys
from pathlib import Path
_REPO_ROOT = Path(__file__).resolve().parents[1]
if str(_REPO_ROOT) not in sys.path:
sys.path.insert(0, str(_REPO_ROOT))
from rpa_browser.adapter import ( # noqa: E402
ApaBrowserAdapter,
REPO_ROOT,
chrome_debug_port,
resolve_chrome_profile_base,
resolve_chrome_profile_dir,
wait_debug_port,
wait_devtools_port,
)
__all__ = [
"ApaBrowserAdapter",
"REPO_ROOT",
"chrome_debug_port",
"resolve_chrome_profile_base",
"resolve_chrome_profile_dir",
"wait_debug_port",
"wait_devtools_port",
]