def bin_dir(venv):
    bin_part = 'Scripts' if os.name == 'nt' else 'bin'
    return os.path.join(venv, bin_part)
On windows there's a different directory for the virtualenv
dataset/ETHPy150Open pre-commit/pre-commit/pre_commit/languages/python.py/bin_dir