Day5-6测试积点任务
问题:Python 中使用 pyadb 时,始终找不到 adb!!
#coding=utf-8
<font face="微软雅黑" size="3">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的路径啊,再确认下 检查一下路径,尤其是空格 adb_path 不应该是,adb 所在的文件夹路径么?
系统会认为"D:/android/android-sdk-windows/platform-tools/adb/adb"吧 确认adb实际在哪里? https://blog.csdn.net/eofguo/article/details/52798206
页:
[1]