def METHOD_NAME() -> Optional[str]:
    '''Try to autodetect the config file path.'''
    for candidate_path in (
            # ~/.my.cnf
            os.path.join(os.getenv('HOME') or '.', '.my.cnf'), ):
        if os.path.isfile(candidate_path):
            return candidate_path
    return None