| #!/usr/bin/env python3 |
| # -*- coding: utf-8 -*- |
| # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| """Python wrapper for programs to generate files. |
| |
| GN action and action_foreach run the script with python. For running a program |
| other than python, use this wrapper. |
| |
| path/to/file_generator_wrapper.py program arg1 ... |
| will run the program with the args. |
| """ |
| |
| from __future__ import print_function |
| |
| import subprocess |
| import sys |
| |
| subprocess.check_call(sys.argv[1:]) |