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

Method _paths

pex/interpreter.py:943–946  ·  view source on GitHub ↗
(paths=None)

Source from the content-addressed store, hash-verified

941
942 @staticmethod
943 def _paths(paths=None):
944 # type: (Optional[Iterable[str]]) -> Iterable[str]
945 # NB: If `paths=[]`, we will not read $PATH.
946 return OrderedSet(paths if paths is not None else os.getenv("PATH", "").split(os.pathsep))
947
948 @classmethod
949 def iter(cls, paths=None):

Callers 3

iterMethod · 0.80
iter_interpretersMethod · 0.80
iter_candidatesMethod · 0.80

Calls 1

OrderedSetClass · 0.90

Tested by

no test coverage detected