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

Unified Diff: tools/grit/grit/format/repack.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 | « remoting/tools/build/remoting_ios_localize.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/format/repack.py
diff --git a/tools/grit/grit/format/repack.py b/tools/grit/grit/format/repack.py
index 337b7af20b5af3c53c465bcf07dc82385b388d2d..c4a593a82d2c06ddadbbaba46279ba54d8cf1526 100755
--- a/tools/grit/grit/format/repack.py
+++ b/tools/grit/grit/format/repack.py
@@ -14,7 +14,9 @@ import os
import sys
if __name__ == '__main__':
- sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
+ # 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__), '../..'))
import grit.format.data_pack
« no previous file with comments | « remoting/tools/build/remoting_ios_localize.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698