'Get name of config section for given file.'

def get_section(self, file):

    filename = os.path.basename(file)
    if (filename in self._config):
        return filename
    else:
        return self.DEFAULT_SECTION
