def get_config(name=__name__):
    """
    Get a configuration parser for a given TAPP name.
    Reads config.ini files only, not in-database configuration records.

    :param name: The tapp name to get a configuration for.
    :rtype: ConfigParser
    :return: A config parser matching the given name
    """
    cfg = ConfigParser()
    path = os.environ.get('%s_CONFIG_FILE' % name.upper())
    if path is None or path == "":
        fname = '/etc/tapp/%s.ini' % name
        if isfile(fname):
            path = fname
        elif isfile('cfg.ini'):
            path = 'cfg.ini'
        else:
            raise ValueError("Unable to get configuration for tapp %s" % name)

    cfg.read(path)
    return cfg