s6.utils.pathsΒΆ

Helpers for resolving files relative to the monorepo root.

s6.utils.paths.repo_root() Path

Return the repository root directory.

s6.utils.paths.asset_path(*parts: str, **os_parts: str | Path | Iterable[str | Path]) str

Return an absolute path under the monorepo-level assets directory.

When OS-specific keyword arguments are provided, the value matching the current operating system is appended after parts. For example, asset_path("models", osx="a.onnx", ubuntu="b.trt", linux="b.trt") resolves to the asset for the active host OS.