Mike Frysinger | 55504ee | 2018-10-10 15:53:27 -0400 | [diff] [blame^] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Copyright 2018 The Chromium OS Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | """Wrapper around gsutil. |
| 7 | |
| 8 | This takes care of downloading the pinned version we use in chromite. |
| 9 | """ |
| 10 | |
| 11 | from __future__ import print_function |
| 12 | |
| 13 | import os |
| 14 | |
| 15 | from chromite.lib import gs |
| 16 | |
| 17 | |
| 18 | def main(argv): |
| 19 | gsutil = gs.GSContext.GetDefaultGSUtilBin() |
| 20 | os.execv(gsutil, ['gsutil'] + argv) |