import pathlib


def as_pathlib(path):
    """
    Converts the supplied path to an pathlib.Path object
    :param path: The path to convert
    :return: The path converted to pathlib.Path
    """
    return pathlib.Path(path)