MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / get_host_path_mappings

Function get_host_path_mappings

src/cocoindex_code/settings.py:251–256  ·  view source on GitHub ↗

Return the parsed host path mappings from ``COCOINDEX_CODE_HOST_PATH_MAPPING``.

()

Source from the content-addressed store, hash-verified

249
250
251def get_host_path_mappings() -> list[PathMapping]:
252 """Return the parsed host path mappings from ``COCOINDEX_CODE_HOST_PATH_MAPPING``."""
253 global _host_path_mapping # noqa: PLW0603
254 if _host_path_mapping is None:
255 _host_path_mapping = _parse_path_mapping(_ENV_HOST_PATH_MAPPING)
256 return list(_host_path_mapping)
257
258
259def format_path_for_display(p: str | Path) -> str:

Callers 5

_dispatchFunction · 0.85
format_path_for_displayFunction · 0.85
normalize_input_pathFunction · 0.85

Calls 1

_parse_path_mappingFunction · 0.85

Tested by 2