| Index: build/android/gyp/jinja_template.py
|
| diff --git a/build/android/gyp/jinja_template.py b/build/android/gyp/jinja_template.py
|
| index e7c9a3436a459b7e50f2071d49ce9b4ee2c54fae..a3633ae880d10ddfab8ba51ed76fcb714a44055d 100755
|
| --- a/build/android/gyp/jinja_template.py
|
| +++ b/build/android/gyp/jinja_template.py
|
| @@ -11,10 +11,12 @@ import optparse
|
| import os
|
| import sys
|
|
|
| +sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
|
| +from pylib import constants
|
| from util import build_utils
|
|
|
| # Import jinja2 from third_party/jinja2
|
| -sys.path.append(os.path.join(os.path.dirname(__file__), '../../../third_party'))
|
| +sys.path.append(os.path.join(constants.DIR_SOURCE_ROOT, 'third_party'))
|
| import jinja2 # pylint: disable=F0401
|
|
|
|
|
| @@ -76,8 +78,8 @@ def main():
|
| 'input. Required if --output-zip is given.')
|
| parser.add_option('--loader-base-dir', help='Base path used by the template '
|
| 'loader. Must be a common ancestor directory of '
|
| - 'the inputs. Defaults to CHROMIUM_SRC.',
|
| - default=build_utils.CHROMIUM_SRC)
|
| + 'the inputs. Defaults to DIR_SOURCE_ROOT.',
|
| + default=constants.DIR_SOURCE_ROOT)
|
| parser.add_option('--variables', help='Variables to be made available in the '
|
| 'template processing environment, as a GYP list (e.g. '
|
| '--variables "channel=beta mstone=39")', default='')
|
|
|