import configparser


def get_config_ini(ini_file, section, key):
    """
    Get config.ini section->key->value
    [section]
    key = value

    :param ini_file:
    :param section:
    :param key:
    :return:value
    """

    try:
        config = configparser.ConfigParser()
        config.read(ini_file)
        value = config.get(section, key)
    except Exception as e:
        raise Exception(e)
    else:
        return value