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

Unified Diff: presubmit_support.py

Issue 1110006: Fix import of simplejson included in depot_tools (Closed)
Patch Set: Created 10 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_support.py
diff --git a/presubmit_support.py b/presubmit_support.py
index cfdcfa38a83d67cd652f27caa7cad1d90710de32..9da419429ba4e548b702ecfbe5996a1428b4150e 100755
--- a/presubmit_support.py
+++ b/presubmit_support.py
@@ -41,7 +41,8 @@ except ImportError:
import json
except ImportError:
# Import the one included in depot_tools.
- import third_party.simplejson as json
+ sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party'))
+ import simplejson as json
# Local imports.
import gcl
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698