MCPcopy Index your code
hub / github.com/python/cpython / resource_path

Method resource_path

Lib/importlib/resources/readers.py:26–32  ·  view source on GitHub ↗

Return the file system path to prevent `resources.path()` from creating a temporary copy.

(self, resource)

Source from the content-addressed store, hash-verified

24 self.path = pathlib.Path(loader.path).parent
25
26 def resource_path(self, resource):
27 """
28 Return the file system path to prevent
29 `resources.path()` from creating a temporary
30 copy.
31 """
32 return str(self.path.joinpath(resource))
33
34 def files(self):
35 return self.path

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
joinpathMethod · 0.45

Tested by

no test coverage detected