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

Method _expand_path

pex/interpreter.py:1179–1184  ·  view source on GitHub ↗
(cls, path)

Source from the content-addressed store, hash-verified

1177
1178 @classmethod
1179 def _expand_path(cls, path):
1180 if os.path.isfile(path):
1181 return [path]
1182 elif os.path.isdir(path):
1183 return sorted(os.path.join(path, fn) for fn in os.listdir(path))
1184 return []
1185
1186 @classmethod
1187 def from_env(

Callers 1

iter_candidatesMethod · 0.80

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected