| #!/usr/bin/env vpython |
| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # [VPYTHON:BEGIN] |
| # python_version: "2.7" |
| # wheel < |
| # name: "infra/python/wheels/pyyaml/${platform}_${py_python}_${py_abi}" |
| # version: "version:3.12" |
| # > |
| # [VPYTHON:END] |
| |
| import argparse |
| import json |
| import sys |
| import yaml |
| |
| |
| def main(): |
| parser = argparse.ArgumentParser() |
| parser.add_argument("file") |
| args = parser.parse_args() |
| |
| with open(args.file) as f: |
| print json.dumps(yaml.load(f)) |
| |
| |
| if __name__ == "__main__": |
| sys.exit(main()) |