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

Method locate

Lib/importlib/metadata/__init__.py:319–321  ·  view source on GitHub ↗

Return a path-like object for this path

(self)

Source from the content-addressed store, hash-verified

317 return self.locate().read_bytes()
318
319 def locate(self) -> SimplePath:
320 """Return a path-like object for this path"""
321 return self.dist.locate_file(self)
322
323
324class FileHash:

Callers 6

read_textMethod · 0.95
read_binaryMethod · 0.95
_test_filesMethod · 0.80
_test_filesMethod · 0.80
test_builtinMethod · 0.80
skip_missing_filesMethod · 0.80

Calls 1

locate_fileMethod · 0.45

Tested by 3

_test_filesMethod · 0.64
_test_filesMethod · 0.64
test_builtinMethod · 0.64