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

Unified Diff: build/android/resource_sizes.py

Issue 2228463002: Fix various grit python paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « android_webview/tools/webview_repack_locales.py ('k') | chrome/tools/build/repack_locales.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/resource_sizes.py
diff --git a/build/android/resource_sizes.py b/build/android/resource_sizes.py
index 16f9e61004f101503fd7dac01ec49a17d08b209b..b38d6475eaa5bd0f959580c8673a355fe746847c 100755
--- a/build/android/resource_sizes.py
+++ b/build/android/resource_sizes.py
@@ -29,7 +29,9 @@ from pylib.constants import host_paths
_GRIT_PATH = os.path.join(host_paths.DIR_SOURCE_ROOT, 'tools', 'grit')
-with host_paths.SysPath(_GRIT_PATH):
+# Prepend the grit module from the source tree so it takes precedence over other
+# grit versions that might present in the search path.
+with host_paths.SysPath(_GRIT_PATH, 1):
from grit.format import data_pack # pylint: disable=import-error
with host_paths.SysPath(host_paths.BUILD_COMMON_PATH):
« no previous file with comments | « android_webview/tools/webview_repack_locales.py ('k') | chrome/tools/build/repack_locales.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698