import json


def open_config(config_name):
    """opens the given config file (path as string) and returns the data (dictionary) stored in it"""
    with open(config_name, 'r') as configfile:
        data = json.load(configfile)
    configfile.close()
    return data