code: def load(config_path=DEFAULT_CONFIG_PATH):
      
      if not pathlib.Path(config_path).exists():
          logger.debug(f"Could not locate {config_path}, using default config.")
          return DEFAULT_CONFIG
  
      config = configparser.ConfigParser(default_section=DEFAULT_CONFIG_SECTION)
      config.read(config_path)
  
      operators = config.get(
          section=DEFAULT_CONFIG_SECTION, option="operators", fallback=DEFAULT_OPERATORS
      )
      archiver = config.get(
          section=DEFAULT_CONFIG_SECTION, option="archiver", fallback=DEFAULT_ARCHIVER
      )
      path = config.get(section=DEFAULT_CONFIG_SECTION, option="path", fallback=".")
      max_revisions = int(
          config.get(
              section=DEFAULT_CONFIG_SECTION,
              option="max_revisions",
              fallback=DEFAULT_MAX_REVISIONS,
          )
      )
  
      return WilyConfig(
          operators=operators, archiver=archiver, path=path, max_revisions=max_revisions
      )
docs: Load config file and set values to defaults where no present.
  
      :return: The configuration ``WilyConfig``
      :rtype: :class:`wily.config.WilyConfig`