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

Unified Diff: sky/tools/skydb

Issue 658113004: Teach tools/skydb how to take a URL as a parameter. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: std library, ouch. Created 6 years, 2 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 | « sky/tools/debugger/prompt/prompt.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/skydb
diff --git a/sky/tools/skydb b/sky/tools/skydb
index 5c3af21c83c11a97ba9f0a2fe0ccdb2c967bea45..406e4826091eade3ed928d9f918875cd5c07735b 100755
--- a/sky/tools/skydb
+++ b/sky/tools/skydb
@@ -5,16 +5,27 @@
import os
import subprocess
+import sys
-build_directory = 'out'
-config_directory = 'Debug'
-mojo_shell = os.path.abspath(os.path.join(__file__, os.pardir, os.pardir,
- os.pardir, build_directory, config_directory, 'mojo_shell'))
+BUILD_DIRECTORY = 'out'
+CONFIG_DIRECTORY = 'Debug'
+MOJO_SHELL_PATH = os.path.abspath(os.path.join(__file__, os.pardir, os.pardir,
+ os.pardir, BUILD_DIRECTORY, CONFIG_DIRECTORY, 'mojo_shell'))
-subprocess.call([
- mojo_shell,
- '--content-handlers=text/html,mojo://sky_viewer/',
- '--url-mappings=mojo:window_manager=mojo:sky_debugger',
- 'mojo:window_manager',
-])
+def main(args):
+ shell_command = [
+ MOJO_SHELL_PATH,
+ '--v=1',
+ '--content-handlers=text/html,mojo://sky_viewer/',
+ '--url-mappings=mojo:window_manager=mojo:sky_debugger',
+ 'mojo:window_manager',
+ ]
+ if args:
+ prompt_args = '--args-for=mojo://sky_debugger_prompt/ %s' % args[0]
+ shell_command.append(prompt_args)
+ subprocess.check_call(shell_command)
+
+
+if __name__ == '__main__':
+ main(sys.argv[1:])
« no previous file with comments | « sky/tools/debugger/prompt/prompt.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698