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

Unified Diff: appengine/components/tool_support/gae_sdk_utils.py

Issue 1478573003: Symlink test_env.py instead of test_support in preparation of jinja2. (Closed) Base URL: git@github.com:luci/luci-py.git@2_jinja2
Patch Set: Created 5 years, 1 month 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: appengine/components/tool_support/gae_sdk_utils.py
diff --git a/appengine/components/tool_support/gae_sdk_utils.py b/appengine/components/tool_support/gae_sdk_utils.py
index 6850cd85e20c7f8dc0d47e99a4c0547637db82e8..43fe762ba0fb21a9b50e6d9ecc50862dc85ed259 100644
--- a/appengine/components/tool_support/gae_sdk_utils.py
+++ b/appengine/components/tool_support/gae_sdk_utils.py
@@ -156,6 +156,9 @@ def setup_gae_sdk(sdk_path):
import dev_appserver
dev_appserver.fix_sys_path()
+ for i in sys.path[:]:
+ if 'jinja2-2.6' in i:
+ sys.path.remove(i)
# Make 'yaml' variable (defined on top of this module) point to loaded module.
global yaml

Powered by Google App Engine
This is Rietveld 408576698