(self, config_file, *default_files)
return self
Load first from the default files, then from the main file.
        This ensures multiple files can be used as backup without overwriting the main one.
Load first from the default files, then from the main file.
        This ensures multiple files can be used as backup without overwriting the main one.
Load first from the default files then from the main file . This ensures multiple files can be used as backup without overwriting the main one .
def load(self, config_file, *default_files):
        """Load first from the default files, then from the main file.
        This ensures multiple files can be used as backup without overwriting the main one.
        """
        for default_file in default_files[::-1]:
            if default_file and default_file != config_file:
                try:
                    self._update_from_file(default_file)
                except IOError:
                    pass
        try:
            self._update_from_file(config_file)
        except IOError:
            self.is_new = True
        return self
def load ( self , config_file , * default_files ) : for default_file in default_files [ : : - 1 ] : if default_file and default_file != config_file : try : self . _update_from_file ( default_file ) except IOError : pass try : self . _update_from_file ( config_file ) except IOError : self . is_new = True return self