def load_config(resource_json, permission_json):
    """load resource.json and permission.json

    :param resource_json: path of resource.json
    :param permission_json: path of permission.json
    """
    try:
        with codecs.open(resource_json, encoding="utf-8") as f_resource, \
                codecs.open(permission_json, encoding="utf-8") as f_permission:
            return json.load(f_resource), json.load(f_permission)
    except __HOLE__ as e:
        e.strerror = "can't load auth config file: %s" % e.strerror
        raise
dataset/ETHPy150Open guyskk/flask-restaction/flask_restaction/auth.py/load_config