def load(self):
        """
        Load all configurations from available resources, skip if empty:

            1. :attr:`default`` dict passed to :func:`ConfigLoad.__init__`.
            2. Custom paths as defined in :attr:`CONFS_PATH` in
                :class:`~lago.constants`.
            3. XDG standard paths.
            4. Environment variables.

        Returns:
            dict: dict of dicts.

        """

        configp = configparser.ConfigParser()
        configp.read_dict(self._defaults)
        for path in _get_configs_path():
            try:
                with open(path, 'r') as config_file:
                    configp.read_file(config_file)
            except IOError:
                pass
        configp.read_dict(get_env_dict(self.root_section))
        return {s: dict(configp.items(s)) for s in configp.sections()}
def load ( self ) : configp = configparser . ConfigParser ( ) configp . read_dict ( self . _defaults ) for path in _get_configs_path ( ) : try : with open ( path , 'r' ) as config_file : configp . read_file ( config_file ) except IOError : pass configp . read_dict ( get_env_dict ( self . root_section ) ) return { s : dict ( configp . items ( s ) ) for s in configp . sections ( ) }
Load all configurations from available resources, skip if empty:

            1. :attr:`default`` dict passed to :func:`ConfigLoad.__init__`.
            2. Custom paths as defined in :attr:`CONFS_PATH` in
                :class:`~lago.constants`.
            3. XDG standard paths.
            4. Environment variables.

        Returns:
            dict: dict of dicts.