Skip to content

Commit

Permalink
find correct path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo committed Mar 13, 2014
1 parent 4611a54 commit 747ca17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ 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, 'tools/android')
if self._isWindows():
android_path = os.path.join(android_sdk_root, 'tools/android.bat')
else:
android_path = os.path.join(android_sdk_root, 'tools/android')
if os.path.isfile(android_path):
return True
else:
Expand All @@ -281,7 +284,7 @@ def _is_ant_root_valid(self, ant_root):

ant_path = ''
if self._isWindows():
ant_path = os.path.join(ant_root, 'ant.exe')
ant_path = os.path.join(ant_root, 'ant.bat')
else:
ant_path = os.path.join(ant_root, 'ant')

Expand Down

0 comments on commit 747ca17

Please sign in to comment.