bridgy-fed/appengine_config.py

21 wiersze
596 B
Python
Czysty Zwykły widok Historia

2017-08-12 23:51:48 +00:00
"""Bridgy App Engine config.
"""
import os
# Load packages from virtualenv
# https://cloud.google.com/appengine/docs/python/tools/libraries27#vendoring
from google.appengine.ext import vendor
try:
vendor.add('local')
except ValueError as e:
import logging
logging.warning("Couldn't set up App Engine vendor virtualenv! %s", e)
from granary.appengine_config import *
# Make requests and urllib3 play nice with App Engine.
# https://github.com/snarfed/bridgy/issues/396
# http://stackoverflow.com/questions/34574740
from requests_toolbelt.adapters import appengine
appengine.monkeypatch()