2 # Copyright (c) 2012 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.
6 # TODO(ferringb): remove this as soon as depot_tools is gutted of its
7 # import logic, and is just a re-exec.
9 """Dynamic wrapper to invoke cbuildbot with standardized import paths."""
15 # Bypass all of chromite_wrappers attempted 'help', and execve to the actual
16 # cbuildbot wrapper/helper chromite has.
17 location = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
18 location = os.path.join(location, 'bin', 'cbuildbot')
19 os.execv(location, [location] + sys.argv[1:])
21 if __name__ == '__main__':