MCPcopy
hub / github.com/pex-tool/pex / normalize_path

Function normalize_path

pex/pex_bootstrapper.py:57–60  ·  view source on GitHub ↗

Normalizes a PATH list into a de-duped list of paths.

(path)

Source from the content-addressed store, hash-verified

55
56
57def normalize_path(path):
58 # type: (Optional[Iterable[str]]) -> Optional[OrderedSet[str]]
59 """Normalizes a PATH list into a de-duped list of paths."""
60 return OrderedSet(PythonInterpreter.canonicalize_path(p) for p in path) if path else None
61
62
63@attr.s(frozen=True)

Callers 2

to_python_interpreterMethod · 0.90
_iter_interpretersFunction · 0.85

Calls 2

OrderedSetClass · 0.90
canonicalize_pathMethod · 0.80

Tested by

no test coverage detected