Chromium Code Reviews| Index: tools/blink_v8_snapshot/run.py |
| diff --git a/tools/blink_v8_snapshot/run.py b/tools/blink_v8_snapshot/run.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a376b4c10e8a57ec6cd9c2d3de5e82c0d711da1c |
| --- /dev/null |
| +++ b/tools/blink_v8_snapshot/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.""" |
|
haraken
2017/07/04 15:04:21
Is this a common way to run a script? I'm just cur
peria
2017/07/07 06:22:04
We can specify only python script to run in .gn, s
|
| + |
| +import os |
| +import subprocess |
| +import sys |
| + |
| +args = sys.argv[1:] |
| +args[0] = os.path.abspath(args[0]) |
| + |
| +sys.exit(subprocess.call(args)) |