Jeremy Leconte | 4fc9bd9 | 2022-03-18 10:21:07 +0100 | [diff] [blame^] | 1 | #!/usr/bin/env vpython3 |
| 2 | |
| 3 | # Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. |
| 4 | # |
| 5 | # Use of this source code is governed by a BSD-style license |
| 6 | # that can be found in the LICENSE file in the root of the source |
| 7 | # tree. An additional intellectual property rights grant can be found |
| 8 | # in the file PATENTS. All contributing project authors may |
| 9 | # be found in the AUTHORS file in the root of the source tree. |
| 10 | """Calls process_perf_results.py with a python 3 interpreter.""" |
| 11 | |
| 12 | import sys |
| 13 | import subprocess |
| 14 | |
| 15 | |
| 16 | # TODO(crbug.com/webrtc/13835): Delete this file and use |
| 17 | # process_perf_results.py instead. |
| 18 | def main(): |
| 19 | cmd = sys.argv[0].replace('_py2', '') |
| 20 | print('Calling "%s" with py3 in case this script was called with py2.' % cmd) |
| 21 | return subprocess.call(['vpython3', cmd] + sys.argv[1:]) |
| 22 | |
| 23 | |
| 24 | if __name__ == '__main__': |
| 25 | sys.exit(main()) |