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 |