OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. |
| 5 |
| 6 import os |
| 7 import subprocess |
| 8 import sys |
| 9 |
| 10 import utils |
| 11 |
| 12 def Main(): |
| 13 args = sys.argv[1:] |
| 14 yaml2json_dart = os.path.relpath( |
| 15 os.path.join(os.path.dirname(__file__), "yaml2json.dart")) |
| 16 command = [utils.CheckedInSdkExecutable(), yaml2json_dart] + args |
| 17 |
| 18 with utils.CoreDumpArchiver(args): |
| 19 exit_code = subprocess.call(command) |
| 20 |
| 21 utils.DiagnoseExitCode(exit_code, command) |
| 22 return exit_code |
| 23 |
| 24 |
| 25 if __name__ == '__main__': |
| 26 sys.exit(Main()) |
OLD | NEW |