MCPcopy Create free account
hub / github.com/deepinsight/insightface / read

Function read

python-package/setup.py:24–27  ·  view source on GitHub ↗
(*names, **kwargs)

Source from the content-addressed store, hash-verified

22 sys.argv.remove(FACE3D_BUILD_FLAG)
23
24def read(*names, **kwargs):
25 with io.open(os.path.join(os.path.dirname(__file__), *names),
26 encoding=kwargs.get("encoding", "utf8")) as fp:
27 return fp.read()
28
29def find_version(*file_paths):
30 version_file = read(*file_paths)

Callers 2

find_versionFunction · 0.85
setup.pyFile · 0.85

Calls 4

openMethod · 0.80
joinMethod · 0.80
getMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected