MCPcopy
hub / github.com/browser-use/video-use / resolve_path

Function resolve_path

helpers/render.py:87–92  ·  view source on GitHub ↗

Resolve a path that may be absolute or relative to `base`.

(maybe_path: str, base: Path)

Source from the content-addressed store, hash-verified

85
86
87def resolve_path(maybe_path: str, base: Path) -> Path:
88 """Resolve a path that may be absolute or relative to `base`."""
89 p = Path(maybe_path)
90 if p.is_absolute():
91 return p
92 return (base / p).resolve()
93
94
95# -------- HDR → SDR tone mapping (HLG / PQ sources) --------------------------

Callers 3

extract_all_segmentsFunction · 0.85
build_final_compositeFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected