Index: appengine/components/components/utils.py |
diff --git a/appengine/components/components/utils.py b/appengine/components/components/utils.py |
index 44cf84539b39d85ece0551f84907a9dab7d43598..4bc6d6fdc6293d31680b0bdc68c3fbdf941d95be 100644 |
--- a/appengine/components/components/utils.py |
+++ b/appengine/components/components/utils.py |
@@ -598,3 +598,11 @@ def fix_protobuf_package(): |
protobuf_pkg = os.path.join(THIS_DIR, 'third_party', 'protobuf', 'google') |
if protobuf_pkg not in google.__path__: |
google.__path__.append(protobuf_pkg) |
+ |
+ |
+def import_jinja2(): |
+ """Remove any existing jinja2 package and add ours.""" |
+ for i in sys.path[:]: |
+ if os.path.basename(i) == 'jinja2': |
+ sys.path.remove(i) |
+ sys.path.append(os.path.join(THIS_DIR, 'third_party')) |