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

Unified Diff: tools/dom/dom.py

Issue 14314023: fix dom.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: tools/dom/dom.py
diff --git a/tools/dom/dom.py b/tools/dom/dom.py
index d9e75886ea9a689550369cb2af917160d6d95332..5832af47e5ab4f6b143561bc11f7fe70088b5d1b 100755
--- a/tools/dom/dom.py
+++ b/tools/dom/dom.py
@@ -9,6 +9,7 @@
import os
import subprocess
import sys
+from sys import argv
Jennifer Messerly 2013/04/27 01:06:58 making sure argv is defined for all the commands a
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import utils
@@ -97,7 +98,8 @@ def compile_dart2js(dart_file, checked):
def gen():
os.chdir(os.path.join('tools', 'dom', 'scripts'))
- return call(os.path.join(os.getcwd(), 'go.sh'))
+ return call([os.path.join(os.getcwd(), 'dartdomgenerator.py'),
Jennifer Messerly 2013/04/27 01:06:58 the "reset" in go.sh fails for me because it doesn
+ '--rebuild', '--parallel', '--systems=htmldart2js,htmldartium'])
def http_server():
print('Browse tests at '
@@ -190,7 +192,7 @@ commands = {
'running browser tests.'],
}
-def main(argv):
+def main():
success = True
argv.pop(0)
@@ -212,4 +214,4 @@ def main(argv):
sys.exit(not success)
if __name__ == '__main__':
- main(sys.argv)
+ main()
« sdk/lib/html/dart2js/html_dart2js.dart ('K') | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698