Upstream version 8.36.161.0
[platform/framework/web/crosswalk.git] / src / third_party / chromite / buildbot / cbuildbot.py
1 #!/usr/bin/python
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.
5
6 # TODO(ferringb): remove this as soon as depot_tools is gutted of its
7 # import logic, and is just a re-exec.
8
9 """Dynamic wrapper to invoke cbuildbot with standardized import paths."""
10
11 import os
12 import sys
13
14 def main():
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:])
20
21 if __name__ == '__main__':
22   main()