(isaaclab_root: Path, repo_root: Path)
| 13 | |
| 14 | |
| 15 | def _extend_pythonpath(isaaclab_root: Path, repo_root: Path) -> None: |
| 16 | extra_paths = [ |
| 17 | repo_root / "source" / "BrainCo_DexHand", |
| 18 | repo_root / "source", |
| 19 | repo_root, |
| 20 | isaaclab_root / "source" / "isaaclab", |
| 21 | isaaclab_root / "source" / "isaaclab_tasks", |
| 22 | isaaclab_root / "source" / "isaaclab_assets", |
| 23 | isaaclab_root / "source" / "isaaclab_rl", |
| 24 | ] |
| 25 | for path in reversed(extra_paths): |
| 26 | if path.exists(): |
| 27 | sys.path.insert(0, str(path)) |
| 28 | |
| 29 | |
| 30 | def _resolve_isaaclab_root() -> Path: |