'Returns a dictionary containing appropriate config file settings.'

def get_config_file_settings(self, config_file):

    parser = ConfigParser()
    parser.read(config_file, self)
    self.config_files.extend(parser._files)
    base_path = os.path.dirname(config_file)
    applied = {}
    settings = Values()
    for component in self.components:
        if (not component):
            continue
        for section in (tuple((component.config_section_dependencies or ())) + (component.config_section,)):
            if applied.has_key(section):
                continue
            applied[section] = 1
            settings.update(parser.get_section(section), self)
    make_paths_absolute(settings.__dict__, self.relative_path_settings, base_path)
    return settings.__dict__
