OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """This script is copied from | |
7 https://chromium.googlesource.com/infra/infra.git/+/master/bootstrap | |
8 """ | |
9 | |
10 import datetime | 6 import datetime |
11 import logging | 7 import logging |
12 import optparse | 8 import optparse |
13 import os | 9 import os |
14 import re | 10 import re |
15 import shutil | 11 import shutil |
16 import sys | 12 import sys |
17 import time | 13 import time |
18 import tempfile | 14 import tempfile |
19 import urllib2 | 15 import urllib2 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 options, args = parser.parse_args() | 126 options, args = parser.parse_args() |
131 if args: | 127 if args: |
132 parser.error('Unsupported args: %s' % ' '.join(args)) | 128 parser.error('Unsupported args: %s' % ' '.join(args)) |
133 logging.basicConfig(level=logging.DEBUG if options.verbose else logging.ERROR) | 129 logging.basicConfig(level=logging.DEBUG if options.verbose else logging.ERROR) |
134 return install_latest_gae_sdk( | 130 return install_latest_gae_sdk( |
135 os.path.abspath(options.dest), options.go, options.dry_run) | 131 os.path.abspath(options.dest), options.go, options.dry_run) |
136 | 132 |
137 | 133 |
138 if __name__ == '__main__': | 134 if __name__ == '__main__': |
139 sys.exit(main()) | 135 sys.exit(main()) |
OLD | NEW |