fix: 完善 MuJoCo 退出与测试环境

This commit is contained in:
2026-08-04 13:58:35 +08:00
parent 9c47c94c79
commit 1fefae34e5
4 changed files with 42 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
"""让 ROS2 系统 pytest 复用项目固定 XR 环境中的 MuJoCo。"""
import sys
from pathlib import Path
XR_SITE_PACKAGES = Path(
"/home/robot/miniconda3/envs/xr/lib/python3.10/site-packages"
)
if XR_SITE_PACKAGES.is_dir():
sys.path.append(str(XR_SITE_PACKAGES))