| OLD | NEW |
| 1 # Copyright 2013 The LUCI Authors. All rights reserved. | 1 # Copyright 2013 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed under the Apache License, Version 2.0 |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 """Set of functions to work with GAE SDK tools.""" | 5 """Set of functions to work with GAE SDK tools.""" |
| 6 | 6 |
| 7 import collections | 7 import collections |
| 8 import getpass | 8 import getpass |
| 9 import glob | 9 import glob |
| 10 import hashlib | 10 import hashlib |
| 11 import logging | 11 import logging |
| 12 import os | 12 import os |
| 13 import re | 13 import re |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 print >> sys.stderr, 'Failed to unlock keyring: %s' % e | 720 print >> sys.stderr, 'Failed to unlock keyring: %s' % e |
| 721 return False | 721 return False |
| 722 | 722 |
| 723 | 723 |
| 724 def setup_gae_env(): | 724 def setup_gae_env(): |
| 725 """Sets up App Engine Python test environment.""" | 725 """Sets up App Engine Python test environment.""" |
| 726 sdk_path = find_gae_sdk(PYTHON_GAE_SDK) | 726 sdk_path = find_gae_sdk(PYTHON_GAE_SDK) |
| 727 if not sdk_path: | 727 if not sdk_path: |
| 728 raise BadEnvironmentConfig('Couldn\'t find GAE SDK.') | 728 raise BadEnvironmentConfig('Couldn\'t find GAE SDK.') |
| 729 setup_gae_sdk(sdk_path) | 729 setup_gae_sdk(sdk_path) |
| OLD | NEW |