h2o-py/h2o/utils/config.py
def _candidate_log_files():
        """Return possible locations for the .h2oconfig file, one at a time."""
        # Search for .h2oconfig in the current directory and all parent directories
        relpath = ".h2oconfig"
        prevpath = None
        while True:
            abspath = os.path.abspath(relpath)
            if abspath == prevpath: break
            prevpath = abspath
            relpath = "../" + relpath
            yield abspath
        # Also check if .h2oconfig exists in the user's directory
        yield os.path.expanduser("~/.h2oconfig")
def _candidate_log_files():
        # Search for .h2oconfig in the current directory and all parent directories
        relpath = ".h2oconfig"
        prevpath = None
        while True:
            abspath = os.path.abspath(relpath)
            if abspath == prevpath: break
            prevpath = abspath
            relpath = "../" + relpath
            yield abspath
        # Also check if .h2oconfig exists in the user's directory
        yield os.path.expanduser("~/.h2oconfig")
def _candidate_log_files ( ) : # Search for .h2oconfig in the current directory and all parent directories relpath = ".h2oconfig" prevpath = None while True : abspath = os . path . abspath ( relpath ) if abspath == prevpath : break prevpath = abspath relpath = "../" + relpath yield abspath # Also check if .h2oconfig exists in the user's directory yield os . path . expanduser ( "~/.h2oconfig" )
Return possible locations for the .h2oconfig file, one at a time.
Return possible locations for the . h2oconfig file one at a time .