MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / bin_dir

Function bin_dir

pre_commit/languages/python.py:49–52  ·  view source on GitHub ↗

On windows there's a different directory for the virtualenv

(venv: str)

Source from the content-addressed store, hash-verified

47
48
49def bin_dir(venv: str) -> str:
50 """On windows there's a different directory for the virtualenv"""
51 bin_part = 'Scripts' if sys.platform == 'win32' else 'bin'
52 return os.path.join(venv, bin_part)
53
54
55def get_env_patch(venv: str) -> PatchesT:

Callers 3

get_env_patchFunction · 0.90
get_env_patchFunction · 0.85
health_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected