""" pytest 配置:将仓库的 python/ 目录加入 sys.path,便于直接导入 hitl 包。 """ import sys from pathlib import Path PYTHON_DIR = Path(__file__).resolve().parents[1] if str(PYTHON_DIR) not in sys.path: sys.path.insert(0, str(PYTHON_DIR))