def get_appsettings(config_uri, name=None, options=None, appconfig=appconfig):
 (path, section) = _getpathsec(config_uri, name)
 config_name = ('config:%s' % path)
 here_dir = os.getcwd()
 return appconfig(config_name, name=section, relative_to=here_dir, global_conf=options)

def get_appsettings ( config_uri , name = None , options = None , appconfig = appconfig ) : ( path , section ) = _getpathsec ( config_uri , name ) config_name = ( 'config:%s' % path ) here_dir = os . getcwd ( ) return appconfig ( config_name , name = section , relative_to = here_dir , global_conf = options )
return a dictionary representing the key/value pairs in an app section within the file represented by config_uri .