MCPcopy Index your code
hub / github.com/httpie/cli / as_site

Function as_site

httpie/utils.py:221–226  ·  view source on GitHub ↗
(path: Path, **extra_vars)

Source from the content-addressed store, hash-verified

219
220
221def as_site(path: Path, **extra_vars) -> Path:
222 site_packages_path = sysconfig.get_path(
223 'purelib',
224 vars={'base': str(path), **extra_vars}
225 )
226 return Path(site_packages_path)
227
228
229def get_site_paths(path: Path) -> Iterable[Path]:

Callers 1

get_site_pathsFunction · 0.85

Calls 1

PathClass · 0.85

Tested by

no test coverage detected