"""pytest 公共夹具:把模拟器根目录加入 sys.path。""" from __future__ import annotations import sys from pathlib import Path SIM_ROOT = Path(__file__).resolve().parents[1] if str(SIM_ROOT) not in sys.path: sys.path.insert(0, str(SIM_ROOT))