File: google_imports.py

package info (click to toggle)
python-protorpc-standalone 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,452 kB
  • ctags: 4,140
  • sloc: python: 11,561; sh: 30; makefile: 29
file content (25 lines) | stat: -rwxr-xr-x 633 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Dynamically decide from where to import other SDK modules.

All other protorpc.webapp code should import other SDK modules from
this module. If necessary, add new imports here (in both places).
"""

__author__ = 'yey@google.com (Ye Yuan)'

# pylint: disable=g-import-not-at-top
# pylint: disable=unused-import

import os
import sys

try:
  from google.appengine import ext
  normal_environment = True
except ImportError:
  normal_environment = False


if normal_environment:
  from google.appengine.ext import webapp
  from google.appengine.ext.webapp import util as webapp_util
  from google.appengine.ext.webapp import template