import shutil
from pathlib import Path


def locate_program(name):
    """Locates program path by name.

    Args:
        name (str): Name of executable

    Returns:
        pathlib.Path: Pathlike Object to Program
        NoneType: If no suitable path is found
    """
    prog_path = shutil.which(name)
    if not prog_path:
        return None
    return Path(prog_path)