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 import logging | 6 import logging |
7 import optparse | 7 import optparse |
8 import os | 8 import os |
9 import re | 9 import re |
10 import shutil | 10 import shutil |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 options, args = parser.parse_args() | 119 options, args = parser.parse_args() |
120 if args: | 120 if args: |
121 parser.error('Unsupported args: %s' % ' '.join(args)) | 121 parser.error('Unsupported args: %s' % ' '.join(args)) |
122 logging.basicConfig(level=logging.DEBUG if options.verbose else logging.ERROR) | 122 logging.basicConfig(level=logging.DEBUG if options.verbose else logging.ERROR) |
123 return install_latest_gae_sdk( | 123 return install_latest_gae_sdk( |
124 os.path.abspath(options.dest), options.go, options.dry_run) | 124 os.path.abspath(options.dest), options.go, options.dry_run) |
125 | 125 |
126 | 126 |
127 if __name__ == '__main__': | 127 if __name__ == '__main__': |
128 sys.exit(main()) | 128 sys.exit(main()) |
OLD | NEW |