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

Unified Diff: components/flags_ui/PRESUBMIT.py

Issue 2897403003: web_dev_style: actually restore sys.path in various PRESUBMITs (Closed)
Patch Set: Created 3 years, 7 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 | « components/about_ui/PRESUBMIT.py ('k') | components/version_ui/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/flags_ui/PRESUBMIT.py
diff --git a/components/flags_ui/PRESUBMIT.py b/components/flags_ui/PRESUBMIT.py
index 469f90770159f681b15e86353abbc3a256b36af7..5b4c471b83b7725533f82b391c3052bd668d5bad 100644
--- a/components/flags_ui/PRESUBMIT.py
+++ b/components/flags_ui/PRESUBMIT.py
@@ -7,7 +7,7 @@ def _CommonChecks(input_api, output_api):
results = []
try:
import sys
- old_sys_path = sys.path
+ old_sys_path = sys.path[:]
cwd = input_api.PresubmitLocalPath()
sys.path += [input_api.os_path.join(cwd, '..', '..', 'tools')]
import web_dev_style.presubmit_support
« no previous file with comments | « components/about_ui/PRESUBMIT.py ('k') | components/version_ui/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698