runtimeenvironment.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:edmunds 作者: LowieHuyghe 项目源码 文件源码
def app_id(self):
        """
        Get the Google App Engine app id
        :return:    The app id
        :rtype:     str
        """

        if not self.is_gae():
            raise RuntimeError('Not running in Google App Engine environment while fetching app_id.')

        if not hasattr(self, '_app_id'):
            from google.appengine.api import app_identity
            self._app_id = app_identity.get_application_id()

        return self._app_id
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号