mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Turns out our shut-down code in debugger.cc is never called. Need to talk to Ben to figure out how to listen for the CloseWindow. R=abarth@chromium.org Review URL: https://codereview.chromium.org/658113004
32 lines
886 B
Python
Executable File
32 lines
886 B
Python
Executable File
#!/usr/bin/env python
|
|
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
|
|
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'))
|
|
|
|
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:])
|