def which(program: str | Path) -> Path | None:
    """Find the path to an executable.

    Args:
        program: The name of the executable.

    Returns:
        The path to the executable.
    """
    which_result = shutil.which(program)
    return Path(which_result) if which_result else None
Find the path to an executable.

    Args:
        program: The name of the executable.

    Returns:
        The path to the executable.
    
reflex/utils/path_ops.py