MCPcopy Index your code
hub / github.com/python/cpython / get_paths

Function get_paths

Lib/sysconfig/__init__.py:484–493  ·  view source on GitHub ↗

Return a mapping containing an install scheme. ``scheme`` is the install scheme name. If not provided, it will return the default scheme for the current platform.

(scheme=get_default_scheme(), vars=None, expand=True)

Source from the content-addressed store, hash-verified

482
483
484def get_paths(scheme=get_default_scheme(), vars=None, expand=True):
485 """Return a mapping containing an install scheme.
486
487 ``scheme`` is the install scheme name. If not provided, it will
488 return the default scheme for the current platform.
489 """
490 if expand:
491 return _expand_vars(scheme, vars)
492 else:
493 return _INSTALL_SCHEMES[scheme]
494
495
496def get_path(name, scheme=get_default_scheme(), vars=None, expand=True):

Callers 3

_mainFunction · 0.90
test_get_pathsMethod · 0.90
get_pathFunction · 0.85

Calls 2

get_default_schemeFunction · 0.85
_expand_varsFunction · 0.85

Tested by 1

test_get_pathsMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…