kopia lustrzana https://github.com/snarfed/bridgy-fed
21 wiersze
596 B
Python
21 wiersze
596 B
Python
"""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()
|