MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / _extend_pythonpath

Function _extend_pythonpath

scripts/rl_games/play.py:15–27  ·  view source on GitHub ↗
(isaaclab_root: Path, repo_root: Path)

Source from the content-addressed store, hash-verified

13
14
15def _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
30def _resolve_isaaclab_root() -> Path:

Callers 1

play.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected