#NEWLINE# def json_configs( type , name ) : #NEWLINE# #INDENT# '\n    Base method that extracts the configuration info from the json file defined\n    in SETTINGS\n    \n    Args:\n        type - the name of the type of configuration object to look in\n        name - the name of the object whose configs will be extracted\n    \n    Returns:\n        a dict containing the settings for the object of type and name\n    \n    Raises:\n        a value error if type or name are not defined in the SETTINGS json file\n    ' #NEWLINE# f = open ( SETTINGS ) #NEWLINE# configs = json . load ( f ) [ type ] #NEWLINE# f . close ( ) #NEWLINE# if ( name not in configs ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Unable to find configuration for %s %s' % ( type , name ) ) ) #NEWLINE# #UNINDENT# return configs [ name ]