MCPcopy Index your code
hub / github.com/astral-sh/python-build-standalone / get_file

Method get_file

pythonbuild/buildenv.py:232–237  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

230 create_tar_from_directory(fh, self.td / "out" / "tools")
231
232 def get_file(self, path):
233 log("retrieving file %s" % path)
234
235 p = self.td / path
236 with p.open("rb") as fh:
237 return fh.read()
238
239 def get_output_archive(self, path, as_tar=False):
240 p = self.td / "out" / path

Callers 1

build_cpythonFunction · 0.45

Calls 1

logFunction · 0.90

Tested by

no test coverage detected