import json


def get_filepaths(sets):
    """
    Extracts the file paths from the provided .json file and returns, the content of
    the .json file as a dictionary as well as a potential error message.
    """

    # Reading in the json file with the settings
    try:
        with open(sets, "r") as read_file:
            paths = json.load(read_file)
            error = ""
    except:
        paths = None
        error = "Error: autocopy_settings.json has not been provided or typo in json\n"
        print(error)
        #time.sleep(60)

    return paths, error