OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | |
6 | |
7 if not os.environ.get('ANDROID_SDK_ROOT'): | |
8 # If envsetup.sh hasn't been sourced and there's no adb in the path, | |
9 # set it here. | |
10 try: | |
11 import subprocess | |
tonyg
2013/05/23 17:10:05
This should be at the top of the file
bulach
2013/05/23 17:29:03
Done.
| |
12 subprocess.call(['adb', 'version']) | |
13 except OSError: | |
14 os.environ['PATH'] += os.pathsep + os.path.abspath(os.path.join( | |
15 os.path.dirname(__file__), | |
16 '..', '..', '..', | |
17 'third_party', 'android_tools', 'sdk', 'platform-tools')) | |
OLD | NEW |