tensorflow/core/platform/cloud/google_auth_provider.cc
/// Returns the credentials file name from the env variable.
Returns the credentials file name from the env variable.
Returns the credentials file name from the env variable .
Status GetEnvironmentVariableFileName(string* filename) {
  if (!filename) {
    return errors::FailedPrecondition("'filename' cannot be nullptr.");
  }
  const char* result = std::getenv(kGoogleApplicationCredentials);
  if (!result || !IsFile(result)) {
    return errors::NotFound(strings::StrCat("$", kGoogleApplicationCredentials,
                                            " is not set or corrupt."));
  }
  *filename = result;
  return Status::OK();
}
Status GetEnvironmentVariableFileName ( string * filename ) { if ( ! filename ) { return errors :: FailedPrecondition ( " " ) ; } const char * result = std :: getenv ( kGoogleApplicationCredentials ) ; if ( ! result || ! IsFile ( result ) ) { return errors :: NotFound ( strings :: StrCat ( " " , kGoogleApplicationCredentials , " " ) ) ; } * filename = result ; return Status :: OK ( ) ; }
Returns the credentials file name from the env variable.
Returns the credentials file name from the env variable .