(self, filenames)
Load a config from files specified by their paths.

        Files are loaded in the order given. Subsequent files will overwrite
        values from previous files. If a file does not exist, it will be
        ignored.
Load a config from files specified by their paths.
Load a config from files specified by their paths .
def load_files(self, filenames):
        """Load a config from files specified by their paths.

        Files are loaded in the order given. Subsequent files will overwrite
        values from previous files. If a file does not exist, it will be
        ignored.
        """
        filtered = [f for f in filenames if os.path.exists(f)]

        fps = [open(f, 'rt') for f in filtered]
        self.load_fps(fps)
        self.loaded_files.update(set(filtered))
        for fp in fps:
            fp.close()
def load_files ( self , filenames ) : filtered = [ f for f in filenames if os . path . exists ( f ) ] fps = [ open ( f , 'rt' ) for f in filtered ] self . load_fps ( fps ) self . loaded_files . update ( set ( filtered ) ) for fp in fps : fp . close ( )