| 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 devtools | 10 import devtools |
| 11 devtools.add_pylib_to_path() | 11 devtools.add_lib_to_path() |
| 12 from pylib.android_shell import AndroidShell | 12 from devtoolslib.android_shell import AndroidShell |
| 13 | 13 |
| 14 from mopy.config import Config | 14 from mopy.config import Config |
| 15 from mopy.paths import Paths | 15 from mopy.paths import Paths |
| 16 | 16 |
| 17 USAGE = ("android_mojo_shell.py " | 17 USAGE = ("android_mojo_shell.py " |
| 18 "[--args-for=<mojo-app>] " | 18 "[--args-for=<mojo-app>] " |
| 19 "[--content-handlers=<handlers>] " | 19 "[--content-handlers=<handlers>] " |
| 20 "[--enable-external-applications] " | 20 "[--enable-external-applications] " |
| 21 "[--disable-cache] " | 21 "[--disable-cache] " |
| 22 "[--enable-multiprocess] " | 22 "[--enable-multiprocess] " |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 shell.InstallApk(paths.target_mojo_shell_path) | 60 shell.InstallApk(paths.target_mojo_shell_path) |
| 61 args.append("--origin=" + launcher_args.origin if launcher_args.origin else | 61 args.append("--origin=" + launcher_args.origin if launcher_args.origin else |
| 62 shell.SetUpLocalOrigin(paths.build_dir)) | 62 shell.SetUpLocalOrigin(paths.build_dir)) |
| 63 | 63 |
| 64 shell.Run(args) | 64 shell.Run(args) |
| 65 return 0 | 65 return 0 |
| 66 | 66 |
| 67 | 67 |
| 68 if __name__ == "__main__": | 68 if __name__ == "__main__": |
| 69 sys.exit(main()) | 69 sys.exit(main()) |
| OLD | NEW |