Index: chrome/tools/build/repack_locales.py |
diff --git a/chrome/tools/build/repack_locales.py b/chrome/tools/build/repack_locales.py |
index dc82d7d474e529eb711c3523b04fdf0fe18eb98c..7708d07ec829b996abf962d0281b60d1dc99de31 100755 |
--- a/chrome/tools/build/repack_locales.py |
+++ b/chrome/tools/build/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 |
# The gyp "branding" variable. |