blob: 5259660bc1460e6563f818029edfb07de8da042c [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style
3# license that can be found in the LICENSE file or at
4# https://developers.google.com/open-source/licenses/bsd
5
6"""Configuration."""
7from __future__ import print_function
8from __future__ import division
9from __future__ import absolute_import
10
11import os
12import sys
13
14# Enable third-party imports
15from google.appengine.ext import vendor
16vendor.add(os.path.join(os.path.dirname(__file__), 'third_party'))
17
18# Set path to your libraries folder.
19lib_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'lib')
20
21# Add libraries installed in the path folder.
22vendor.add(lib_path)
23# Add libraries to pkg_resources working set to find the distribution.
24import pkg_resources
25pkg_resources.working_set.add_entry(lib_path)
26
27import six
28reload(six)
29
30import httplib2
31import oauth2client
32
33# Only need this for local development. gae_ts_mon.__init__.py inserting
34# protobuf_dir to front of sys.path seems to cause this problem.
35# See go/monorail-import-mystery for more context.
36import settings
37if settings.local_mode:
38 from google.rpc import status_pb2
39
40from components import utils
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +020041utils.fix_protobuf_package()