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

Unified Diff: tools/dom/scripts/dartdomgenerator.py

Issue 1768853002: Match version of idl_parser and WebCore so go.sh can be run from a Dart only enlistment. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated commnet Created 4 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 | « tools/.gitignore ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartdomgenerator.py
diff --git a/tools/dom/scripts/dartdomgenerator.py b/tools/dom/scripts/dartdomgenerator.py
index 0a9cff578f9be00e7bf73d2d9b49415f24a641fe..9c9cd3b906f66a3fce6afa6c67cda1412f397e86 100755
--- a/tools/dom/scripts/dartdomgenerator.py
+++ b/tools/dom/scripts/dartdomgenerator.py
@@ -29,6 +29,14 @@ if not os.path.exists(ply_dir):
# location is dartium-git/src/third_party
third_party_dir = os.path.join(dart_dir, '..', 'third_party')
assert(os.path.exists(third_party_dir))
+else:
+ # It's Dart we need to make sure that tools in injected in our search path
+ # because this is where idl_parser is located for a Dart enlistment. Dartium
+ # can firgure out the tools directory because of the location of where the
+ # scripts blink scripts are located.
+ tools_dir = os.path.join(dart_dir, 'tools')
+ sys.path.insert(1, tools_dir)
+
sys.path.insert(1, third_party_dir)
sys.path.insert(1, os.path.join(dart_dir, 'tools/dom/scripts'))
« no previous file with comments | « tools/.gitignore ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698