OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import argparse | 6 import argparse |
7 import logging | 7 import logging |
8 import sys | 8 import sys |
9 | 9 |
| 10 import add_sdk_tools_to_path |
| 11 from mopy import android |
10 from mopy.config import Config | 12 from mopy.config import Config |
11 from mopy.paths import Paths | 13 from mopy.paths import Paths |
12 from mopy import android | 14 |
13 | 15 |
14 USAGE = ("android_mojo_shell.py " | 16 USAGE = ("android_mojo_shell.py " |
15 "[--args-for=<mojo-app>] " | 17 "[--args-for=<mojo-app>] " |
16 "[--content-handlers=<handlers>] " | 18 "[--content-handlers=<handlers>] " |
17 "[--enable-external-applications] " | 19 "[--enable-external-applications] " |
18 "[--disable-cache] " | 20 "[--disable-cache] " |
19 "[--enable-multiprocess] " | 21 "[--enable-multiprocess] " |
20 "[--url-mappings=from1=to1,from2=to2] " | 22 "[--url-mappings=from1=to1,from2=to2] " |
21 "[<mojo-app>] " | 23 "[<mojo-app>] " |
22 """ | 24 """ |
(...skipping 23 matching lines...) Expand all Loading... |
46 context = android.PrepareShellRun(config) | 48 context = android.PrepareShellRun(config) |
47 android.CleanLogs(context) | 49 android.CleanLogs(context) |
48 p = android.ShowLogs() | 50 p = android.ShowLogs() |
49 android.StartShell(context, args, sys.stdout, p.terminate) | 51 android.StartShell(context, args, sys.stdout, p.terminate) |
50 | 52 |
51 return 0 | 53 return 0 |
52 | 54 |
53 | 55 |
54 if __name__ == "__main__": | 56 if __name__ == "__main__": |
55 sys.exit(main()) | 57 sys.exit(main()) |
OLD | NEW |