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

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

Issue 2155413002: [DevTools] Node.js compatibility (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 | third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp » ('j') | 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 3dc3706e006d79823b71fa626f967b5fb703be09..c785c79b528fd162573f62dc36931c38a35cf07d 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
+++ b/third_party/WebKit/Source/platform/inspector_protocol/CodeGenerator.py
@@ -25,13 +25,15 @@ templates_dir = module_path
# Insert at 1 so at front to override system libraries, and
# after path[0] == invoking script dir
third_party_dir = os.path.normpath(os.path.join(
- module_path, os.pardir, os.pardir, os.pardir, os.pardir))
+ module_path, os.pardir, os.pardir, os.pardir, os.pardir, os.pardir,
+ "third_party"))
if os.path.isdir(third_party_dir):
sys.path.insert(1, third_party_dir)
# In Node, it is in deps folder
deps_dir = os.path.normpath(os.path.join(
- module_path, os.pardir, os.pardir, "deps"))
+ module_path, os.pardir, os.pardir, os.pardir, os.pardir, "third_party"))
+
if os.path.isdir(deps_dir):
sys.path.insert(1, os.path.join(deps_dir, "jinja2"))
sys.path.insert(1, os.path.join(deps_dir, "markupsafe"))
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/v8_inspector/V8Console.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698