Chromium Code Reviews| Index: gin/run.py |
| diff --git a/gin/run.py b/gin/run.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a376b4c10e8a57ec6cd9c2d3de5e82c0d711da1c |
| --- /dev/null |
| +++ b/gin/run.py |
| @@ -0,0 +1,15 @@ |
| +# Copyright 2017 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +"""This program wraps an arbitrary command since gn currently can only execute |
| +scripts.""" |
| + |
| +import os |
| +import subprocess |
| +import sys |
| + |
| +args = sys.argv[1:] |
| +args[0] = os.path.abspath(args[0]) |
| + |
| +sys.exit(subprocess.call(args)) |