def getGiCfg(self, key): """ This method is a shorthand for 'getCfg(CFG_SEC_GINFO, key)'. @param key The name of the option we want the value of. @returns The general information configuration value from the configuration file, or None, if no such option exists. """ return cfgGetOrDefault(self.__config, CFG_SEC_GINFO, key, None, self.__configFileVars)
def getCfg(self, section, key): """ @param section The section in the configuration file where to search for the option with the given name. @param key The name of the option we want the value of. @returns The configuration value from the configuration file (or None if the option with the given key does not exist). """ return cfgGetOrDefault(self.__config, section, key, None, self.__configFileVars)