MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_paths

Function get_paths

Lib/sysconfig/__init__.py:489–498  ·  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

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

Callers 3

_mainFunction · 0.90
test_get_pathsMethod · 0.90
get_pathFunction · 0.70

Calls 2

get_default_schemeFunction · 0.85
_expand_varsFunction · 0.85

Tested by 1

test_get_pathsMethod · 0.72