blob: 67b5a4c33f6b8bbb7347a08d11414baed986aed7 [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
Copybara854996b2021-09-07 19:36:02 +000012
Copybara854996b2021-09-07 19:36:02 +000013from google.appengine.ext import vendor
Copybara854996b2021-09-07 19:36:02 +000014
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020015# Add libraries installed in the lib/ folder.
Copybara854996b2021-09-07 19:36:02 +000016lib_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'lib')
Copybara854996b2021-09-07 19:36:02 +000017vendor.add(lib_path)
18# Add libraries to pkg_resources working set to find the distribution.
19import pkg_resources
20pkg_resources.working_set.add_entry(lib_path)
21
22import six
23reload(six)
24
25import httplib2
26import oauth2client
27
28# Only need this for local development. gae_ts_mon.__init__.py inserting
29# protobuf_dir to front of sys.path seems to cause this problem.
30# See go/monorail-import-mystery for more context.
31import settings
32if settings.local_mode:
33 from google.rpc import status_pb2
34
35from components import utils
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020036utils.fix_protobuf_package()