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

Function _extend_pythonpath

scripts/rl_games/train.py:13–25  ·  view source on GitHub ↗
(isaaclab_root: Path, repo_root: Path)

Source from the content-addressed store, hash-verified

11
12
13def _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
28def _resolve_isaaclab_root() -> Path:

Callers 1

train.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected