OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 """Declares a number of site-dependent variables for use by scripts. |
| 6 """ |
| 7 |
| 8 import os |
| 9 from twisted.spread import banana |
| 10 |
| 11 # DatabaseSetup was moved. Import it for backward compatibility |
| 12 from common.chromium_utils import DatabaseSetup # pylint: disable=W0611 |
| 13 from config_bootstrap import config_private # pylint: disable=W0403,W0611 |
| 14 from config_bootstrap import Master # pylint: disable=W0403,W0611 |
| 15 |
| 16 SITE_CONFIG_PATH = os.path.abspath(os.path.dirname(__file__)) |
| 17 |
| 18 # By default, the banana's string size limit is 640kb, which is unsufficient |
| 19 # when passing diff's around. Raise it to 100megs. Do this here since the limit |
| 20 # is enforced on both the server and the client so both need to raise the |
| 21 # limit. |
| 22 banana.SIZE_LIMIT = 100 * 1024 * 1024 |
| 23 |
| 24 |
| 25 def SiteConfigPath(): |
| 26 return SITE_CONFIG_PATH |
| 27 |
| 28 |
| 29 |
| 30 |
| 31 |
| 32 |
OLD | NEW |