from pathlib import Path


def get_image_path(name, directory):
    """Gets the path of an image based on a directory in the script's folder and a name.

    :param name: The name of the image.
    :param directory: The directory name, in the same folder as this script.
    :type name: str
    :type directory: str
    :return: The filepath.
    :rtype: string
    """
    return str(Path(__file__).absolute().parent) + "\\" + directory + "\\" + name