Day4-8测试积点任务
问题:Python 中使用 pyadb 时,始终找不到 adb!!
<font face="微软雅黑" size="3">#coding=utf-8
try:
import sys,os,pyadb
from pyadb import ADB
from os import popen3 as pipe
except ImportError,e:
# should never be reached
print " Required module missing. %s" % e.args
sys.exit(-1)
def ADB_Check():
adb =ADB()
adb_path="D:/android/android-sdk-windows/platform-tools/adb"
if adb.set_adb_path(adb_path)is True:
print "Version: %s" % adb.get_version()
else:
#print "Check ADB binary path"
print "请检查adb路径!"
if __name__ == "__main__":
ADB_Check()</font>
很明显的路径问题,修改正确的路径 未找到正确路径 adb位置对吗? 未找到正确路径
页:
[1]