(self)
return True
Check for sections and options available in the configuration file.
Check for sections and options available in the configuration file.
Check for sections and options available in the configuration file .
def check_config(self):
        """
        Check for sections and options available in the configuration file.
        """

        self.cfgparser.read(self.filepath)
        for section, options in self.options.items():
            loaded_options = self.cfgparser.options(section)
            for option in options:
                if option not in loaded_options:
                    return False
        return True
def check_config ( self ) : self . cfgparser . read ( self . filepath ) for section , options in self . options . items ( ) : loaded_options = self . cfgparser . options ( section ) for option in options : if option not in loaded_options : return False return True