We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c5e79 commit 9b7ffd7Copy full SHA for 9b7ffd7
click/_compat.py
@@ -8,7 +8,9 @@
8
9
PY2 = sys.version_info[0] == 2
10
CYGWIN = sys.platform.startswith('cygwin')
11
-APP_ENGINE = os.environ.get('SERVER_SOFTWARE', '').startswith('Development')
+# Determine local App Engine environment, per Google's own suggestion
12
+APP_ENGINE = ('APPENGINE_RUNTIME' in os.environ and
13
+ 'Development/' in os.environ['SERVER_SOFTWARE'])
14
WIN = sys.platform.startswith('win') and not APP_ENGINE
15
DEFAULT_COLUMNS = 80
16
0 commit comments