Skip to content

Commit

Permalink
Changed check for ADB executable on MS Windows
Browse files Browse the repository at this point in the history
- Version 2.3.14
  • Loading branch information
dtmilano committed Apr 28, 2013
1 parent 25df509 commit 66f812e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AndroidViewClient/src/com/dtmilano/android/viewclient.py
Expand Up @@ -17,7 +17,7 @@
@author: diego
'''

__version__ = '2.3.13'
__version__ = '2.3.14'

import sys
import subprocess
Expand Down Expand Up @@ -1053,7 +1053,7 @@ def __obtainAdbPath():

for path in os.environ["PATH"].split(os.pathsep):
exeFile = os.path.join(path, adb)
if exeFile != None and (isWindows or os.access(exeFile, os.X_OK)):
if exeFile != None and os.access(exeFile, os.X_OK if not isWindows else os.F_OK)):
return exeFile

raise Exception('adb="%s" is not executable. Did you forget to set ANDROID_HOME in the environment?' % adb)
Expand Down

0 comments on commit 66f812e

Please sign in to comment.