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