Index: chromecast/tools/build/chromecast_repack_locales.py |
diff --git a/chromecast/tools/build/chromecast_repack_locales.py b/chromecast/tools/build/chromecast_repack_locales.py |
index fec1011a941b4bf49d29ada8c4ad76aa115d0ad6..05db65de3044e58a59fc2d55589b8d811bf64eba 100755 |
--- a/chromecast/tools/build/chromecast_repack_locales.py |
+++ b/chromecast/tools/build/chromecast_repack_locales.py |
@@ -14,8 +14,10 @@ import optparse |
import os |
import sys |
-sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..', |
- 'tools', 'grit')) |
+# Prepend the grit module from the source tree so it takes precedence over other |
+# grit versions that might present in the search path. |
+sys.path.insert(1, os.path.join(os.path.dirname(__file__), '..', '..', '..', |
+ 'tools', 'grit')) |
from grit.format import data_pack |
# Some build paths defined by gyp. |