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): |