Index: build/android/gyp/jinja_template.py |
diff --git a/build/android/gyp/jinja_template.py b/build/android/gyp/jinja_template.py |
index a3633ae880d10ddfab8ba51ed76fcb714a44055d..7e9624be7c2f60aa4e83795c5ed237bae9c0f33f 100755 |
--- a/build/android/gyp/jinja_template.py |
+++ b/build/android/gyp/jinja_template.py |
@@ -11,12 +11,13 @@ 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 |
+sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) |
+from pylib.constants import host_paths |
+ |
# Import jinja2 from third_party/jinja2 |
-sys.path.append(os.path.join(constants.DIR_SOURCE_ROOT, 'third_party')) |
+sys.path.append(os.path.join(host_paths.DIR_SOURCE_ROOT, 'third_party')) |
import jinja2 # pylint: disable=F0401 |
@@ -79,7 +80,7 @@ def main(): |
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 DIR_SOURCE_ROOT.', |
- default=constants.DIR_SOURCE_ROOT) |
+ default=host_paths.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='') |