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

Unified Diff: ios/chrome/tools/build/ios_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
Index: ios/chrome/tools/build/ios_repack_locales.py
diff --git a/ios/chrome/tools/build/ios_repack_locales.py b/ios/chrome/tools/build/ios_repack_locales.py
index d65ce8d7d0818b55b905680c1afb63763664b34b..cd7818ed757d3121927fc3b36212aa25d1b9c8ca 100755
--- a/ios/chrome/tools/build/ios_repack_locales.py
+++ b/ios/chrome/tools/build/ios_repack_locales.py
@@ -14,9 +14,11 @@ import optparse
import os
import sys
+# Prepend the grit module from the source tree so it takes precedence over other
+# grit versions that might present in the search path.
script_dir = os.path.dirname(__file__)
src_dir = os.path.join(script_dir, os.pardir, os.pardir, os.pardir, os.pardir)
-sys.path.append(os.path.join(src_dir, 'tools', 'grit'))
+sys.path.insert(1, os.path.join(src_dir, 'tools', 'grit'))
from grit.format import data_pack
« no previous file with comments | « ios/chrome/tools/build/ios_repack_extension_locales.py ('k') | remoting/tools/build/remoting_copy_locales.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698