Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: build/android/gyp/jinja_template.py

Issue 1412793012: Fix Python imported modules depfile generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove stray slash in os.path.join Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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='')
« no previous file with comments | « no previous file | build/android/gyp/util/build_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698