class_docstr: Helper class responsible for reading h2o config files.
  
  This module will look for file(s) named ".h2oconfig" in the current folder, in all parent folders, and finally in
  the user's home directory. The first such file found will be used for configuration purposes. The format for such
  file is a simple "key = value" store, with possible section names in square brackets. Single-line comments starting
  with '#' are also allowed.
class_docstr_tok: ["Helper","class","responsible","for","reading","h2o","config","files",".","This","module","will","look","for","file","(","s",")","named","``",".h2oconfig","''","in","the","current","folder",",","in","all","parent","folders",",","and","finally","in","the","user","'s","home","directory",".","The","first","such","file","found","will","be","used","for","configuration","purposes",".","The","format","for","such","file","is","a","simple","``","key","=","value","''","store",",","with","possible","section","names","in","square","brackets",".","Single-line","comments","starting","with","'","#","'","are","also","allowed","."]
docstr: Return possible locations for the .h2oconfig file, one at a time.
docstr_tok: ["Return","possible","locations","for","the",".h2oconfig","file",",","one","at","a","time","."]
code: def _candidate_log_files(self):
      """Return possible locations for the .h2oconfig file, one at a time."""
      # Search for .h2oconfig in the current directory and all parent directories
      config_file = ".h2oconfig"
      lookup_dir = self._root
      prev_path = None
      while True:
          lookup_path = os.path.abspath(
              os.path.join(lookup_dir, config_file)
          )
          if lookup_path == prev_path:
              break
          prev_path = lookup_path
          lookup_dir = os.path.join(lookup_dir, os.pardir)
          yield lookup_path
      # Also check if .h2oconfig exists in the user's directory
      yield os.path.expanduser("~/.h2oconfig")
  
file_path: h2o-3/h2o-py/h2o/utils/config.py
imports: import io
  import logging
  import os
  import re
label_desc: Use image node_id 5 for calling the H2OConfigReader obj's underlying member method code with example usage: obj._candidate_log_files() without return types