#NEWLINE# def load_config( resource_json , permission_json ) : #NEWLINE# #INDENT# 'load resource.json and permission.json\n\n    :param resource_json: path of resource.json\n    :param permission_json: path of permission.json\n    ' #NEWLINE# try : #NEWLINE# #INDENT# with codecs . open ( resource_json , encoding = 'utf-8' ) as f_resource , codecs . open ( permission_json , encoding = 'utf-8' ) as f_permission : #NEWLINE# #INDENT# return ( json . load ( f_resource ) , json . load ( f_permission ) ) #NEWLINE# #UNINDENT# #UNINDENT# except IOError as e : #NEWLINE# #INDENT# e . strerror = ( "can't load auth config file: %s" % e . strerror ) #NEWLINE# raise