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

Unified Diff: chromecast/tools/build/chromecast_repack_locales.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 | « chrome/tools/build/repack_locales.py ('k') | ios/chrome/tools/build/ios_repack_extension_locales.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/tools/build/repack_locales.py ('k') | ios/chrome/tools/build/ios_repack_extension_locales.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698