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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py

Issue 2174773002: DevTools: add correct include dirs to protocol handler generator for V8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py b/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
index c785c79b528fd162573f62dc36931c38a35cf07d..ba8d5259e48c339f37b5a6d546fa671cdfb08a26 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
+++ b/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
@@ -30,6 +30,13 @@ third_party_dir = os.path.normpath(os.path.join(
if os.path.isdir(third_party_dir):
sys.path.insert(1, third_party_dir)
+# In V8, it is in tools folder
+tools_dir = os.path.normpath(os.path.join(
+ module_path, os.pardir, os.pardir, "tools"))
pfeldman 2016/07/22 17:07:34 I don't think we are allowed to have third party o
+
+if os.path.isdir(tools_dir):
+ sys.path.insert(1, tools_dir)
+
# In Node, it is in deps folder
deps_dir = os.path.normpath(os.path.join(
module_path, os.pardir, os.pardir, os.pardir, os.pardir, "third_party"))
« 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