import configparser


def getSelectionList(configFile='config.cfg'):
    """
                get the list of available selections
                :param configFile: location of configuration file
                :return: a dictionary of sections
        """
    selectionMap = {}
    config = configparser.ConfigParser()
    config.read(configFile)
    for selection in config.sections():
        data = {}
        for tp in config.items(selection):
            data[tp[0]] = tp[1]
        selectionMap[selection] = data
    return selectionMap