from pathlib import Path


def find_venv_bin(venv_path, bin_name):
    """Given the path for a venv, find a executable there"""
    assert Path(venv_path).exists()
    candidates = list(map(str, Path(venv_path).glob(f"*/{bin_name}*")))
    return sorted(candidates, key=len)[0]