def _get_well_known_file():
 WELL_KNOWN_CREDENTIALS_FILE = 'application_default_credentials.json'
 default_config_dir = os.getenv(_CLOUDSDK_CONFIG_ENV_VAR)
 if (default_config_dir is None):
  if (os.name == 'nt'):
   try:
    default_config_dir = os.path.join(os.environ['APPDATA'], _CLOUDSDK_CONFIG_DIRECTORY)
   except KeyError:
    drive = os.environ.get('SystemDrive', 'C:')
    default_config_dir = os.path.join(drive, '\\', _CLOUDSDK_CONFIG_DIRECTORY)
  else:
   default_config_dir = os.path.join(os.path.expanduser('~'), '.config', _CLOUDSDK_CONFIG_DIRECTORY)
 return os.path.join(default_config_dir, WELL_KNOWN_CREDENTIALS_FILE)

def _get_well_known_file ( ) : WELL_KNOWN_CREDENTIALS_FILE = 'application_default_credentials.json' default_config_dir = os . getenv ( _CLOUDSDK_CONFIG_ENV_VAR ) if ( default_config_dir is None ) : if ( os . name == 'nt' ) : try : default_config_dir = os . path . join ( os . environ [ 'APPDATA' ] , _CLOUDSDK_CONFIG_DIRECTORY ) except KeyError : drive = os . environ . get ( 'SystemDrive' , 'C:' ) default_config_dir = os . path . join ( drive , '\\' , _CLOUDSDK_CONFIG_DIRECTORY ) else : default_config_dir = os . path . join ( os . path . expanduser ( '~' ) , '.config' , _CLOUDSDK_CONFIG_DIRECTORY ) return os . path . join ( default_config_dir , WELL_KNOWN_CREDENTIALS_FILE )
get the well known file produced by command gcloud auth login .