MCPcopy Create free account
hub / github.com/libgit2/pygit2 / _get_libgit2_path

Function _get_libgit2_path

pygit2/_build.py:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41# Utility functions to get the paths required for building extensions
42#
43def _get_libgit2_path() -> Path:
44 # LIBGIT2 environment variable takes precedence
45 libgit2_path = os.getenv('LIBGIT2')
46 if libgit2_path is not None:
47 return Path(libgit2_path)
48
49 # Default
50 if os.name == 'nt':
51 return Path(r'%s\libgit2' % os.getenv('ProgramFiles'))
52 return Path('/usr/local')
53
54
55def get_libgit2_paths() -> tuple[Path, dict[str, list[str]]]:

Callers 1

get_libgit2_pathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…