Skip to content

Commit

Permalink
set ANDROID_SDK_ROOT to correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Mar 11, 2014
1 parent c72586d commit 6c564e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _set_environment_variable_unix(self, key, value):
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

Expand Down Expand Up @@ -271,7 +271,7 @@ def _is_android_sdk_root_valid(self, android_sdk_root):
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:
Expand Down

0 comments on commit 6c564e4

Please sign in to comment.