def fetch_config(filename):
    """Fetch the Configuration schema information

    Finds the schema file, loads the file and reads the JSON, then converts to a dictionary that is returned
    """

    #  This trick gets the directory of *this* file Configuration.py thus
    # allowing to find the schema files relative to this file.
    dir_name = get_source_dir()

    # Append json
    filename = os.path.join('json', filename)

    fileobj = open(os.path.join(dir_name, filename), 'r')
    my_dict = json.loads(fileobj.read())
    return my_dict
Fetch the Configuration schema information

    Finds the schema file, loads the file and reads the JSON, then converts to a dictionary that is returned