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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py

Issue 2548163002: Unbreak test-webkitpy. (Closed)
Patch Set: Added TODO and link to bug. Created 4 years 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: third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
index c648dc0b1753ae45c5e6bf07283a9585e56174cb..b9ea5587bdfcc797184c3674f30afc7209109011 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
@@ -4,8 +4,21 @@
import base64
import json
-import httplib2
import logging
+import os
+import sys
+
+from webkitpy.common.system.filesystem import FileSystem
+from webkitpy.common.webkit_finder import WebKitFinder
+
+# httplib2 is part of the hermetic depot_tools install,
+# but we first need to find a path to it.
+# TODO(dglazkov): libhttp2 needs to be imported into thirdparty dir.
+# See http://crbug.com/670987 for details.
+_DEPOT_TOOLS_ROOT = WebKitFinder(FileSystem()).depot_tools_base()
+sys.path.append(os.path.join(_DEPOT_TOOLS_ROOT, 'third_party'))
+
+import httplib2
_log = logging.getLogger(__name__)
API_BASE = 'https://api.github.com'
« 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