Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / chromite / bin / cros_sdk.py
1 # Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # TODO(ferringb): remove this as soon as depot_tools is gutted of its
6 # import logic, and is just a re-exec.
7
8 from __future__ import print_function
9
10 import os
11 import sys
12
13 def main():
14   # Bypass all of chromite_wrappers attempted 'help', and execve to the actual
15   # cros_sdk wrapper/helper chromite has.
16   location = os.path.dirname(os.path.abspath(__file__))
17   location = os.path.join(location, 'cros_sdk')
18   os.execv(location, [location] + sys.argv[1:])
19
20 if __name__ == '__main__':
21   main()