yincheng.zhong
2 天以前 567085ead3f6adaabd884f16ab4b17c62e8f0403
1
2
3
4
5
6
7
8
9
10
"""
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))