# Copyright 2018 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
"""Replacement for google.appengine.api.app_identity for flexible env.""" | |
from __future__ import absolute_import | |
from __future__ import division | |
from __future__ import print_function | |
import os | |
def get_application_id(): | |
"""Gets the current App Engine project id.""" | |
return os.environ.get('GOOGLE_CLOUD_PROJECT', 'no-project') |