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

Method locate_file

Lib/importlib/metadata/__init__.py:387–391  ·  view source on GitHub ↗

Given a path to a file in this distribution, return a SimplePath to it.

(self, path: str | os.PathLike[str])

Source from the content-addressed store, hash-verified

385
386 @abc.abstractmethod
387 def locate_file(self, path: str | os.PathLike[str]) -> SimplePath:
388 """
389 Given a path to a file in this distribution, return a SimplePath
390 to it.
391 """
392
393 @classmethod
394 def from_name(cls, name: str) -> Distribution:

Callers 6

test_filesMethod · 0.45
test_filesMethod · 0.45
test_filesMethod · 0.45
test_filesMethod · 0.45
locateMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_filesMethod · 0.36
test_filesMethod · 0.36
test_filesMethod · 0.36
test_filesMethod · 0.36