parameters: (self, filename, path=None)
docstring: Load config files by filename and path.
docstring_summary: Load config files by filename and path.
docstring_tokens: Load config files by filename and path .
function: def load_config_file(self, filename, path=None):
          """Load config files by filename and path."""
          filename, ext = os.path.splitext(filename)
          new_config = Config()
          for (config, filename) in self._load_config_files(filename, path=path, log=self.log,
              raise_config_file_errors=self.raise_config_file_errors,
          ):
              new_config.merge(config)
              if filename not in self._loaded_config_files:  # only add to list of loaded files if not previously loaded
                  self._loaded_config_files.append(filename)
          # add self.cli_config to preserve CLI config priority
          new_config.merge(self.cli_config)
          self.update_config(new_config)
function_tokens: def load_config_file ( self , filename , path = None ) : filename , ext = os . path . splitext ( filename ) new_config = Config ( ) for ( config , filename ) in self . _load_config_files ( filename , path = path , log = self . log , raise_config_file_errors = self . raise_config_file_errors , ) : new_config . merge ( config ) if filename not in self . _loaded_config_files : # only add to list of loaded files if not previously loaded self . _loaded_config_files . append ( filename ) # add self.cli_config to preserve CLI config priority new_config . merge ( self . cli_config ) self . update_config ( new_config )