set ANDROID_SDK_ROOT to correct path

This commit is contained in:
minggo 2014-03-11 14:54:14 +08:00
parent c72586ddbe
commit 6c564e4c97
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ class SetEnvVar(object):
file.write('export %s=%s\n' % (key, value))
file.write('export PATH=$%s:$PATH\n' % key)
if key == ANDROID_SDK_ROOT:
file.write('export PATH=$%s/sdk/tools:$%s/sdk/platform-tools:$PATH\n' % (key, key))
file.write('export PATH=$%s/tools:$%s/platform-tools:$PATH\n' % (key, key))
file.close()
return True
@ -271,7 +271,7 @@ class SetEnvVar(object):
if not android_sdk_root:
return False
android_path = os.path.join(android_sdk_root, 'sdk/tools/android')
android_path = os.path.join(android_sdk_root, 'tools/android')
if os.path.isfile(android_path):
return True
else: