Skip to content

Commit

Permalink
Merge pull request #995 from zacbir/gae-bug
Browse files Browse the repository at this point in the history
Fix Google App Engine ImportError.
  • Loading branch information
zacbir authored May 15, 2018
2 parents ea213fc + 9b7ffd7 commit a49c207
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion click/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@


PY2 = sys.version_info[0] == 2
WIN = sys.platform.startswith('win')
CYGWIN = sys.platform.startswith('cygwin')
# Determine local App Engine environment, per Google's own suggestion
APP_ENGINE = ('APPENGINE_RUNTIME' in os.environ and
'Development/' in os.environ['SERVER_SOFTWARE'])
WIN = sys.platform.startswith('win') and not APP_ENGINE
DEFAULT_COLUMNS = 80


Expand Down

0 comments on commit a49c207

Please sign in to comment.