mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
android: pick ANDROID_HOME/platform-tools over PATH
When ANDROID_HOME is defined, ANDROID_HOME/platform-tools was appended to the PATH in the environment of the Python interpreter. That meant that if an adb binary was in PATH, it would be picked in preference to the one under ANDROID_HOME. This is now reversed so that ANDROID_HOME takes precedence.
This commit is contained in:
parent
1ba7fbdc9a
commit
d5460e1185
@ -424,7 +424,7 @@ def _initialize_with_android_home(env):
|
||||
logger.debug('Using ANDROID_HOME from the environment.')
|
||||
env.android_home = android_home
|
||||
env.platform_tools = os.path.join(android_home, 'platform-tools')
|
||||
os.environ['PATH'] += os.pathsep + env.platform_tools
|
||||
os.environ['PATH'] = env.platform_tools + os.pathsep + os.environ['PATH']
|
||||
_init_common(env)
|
||||
return env
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user