From 9f09e2fa1143c34ae35898e36d31739efe8a6d5c Mon Sep 17 00:00:00 2001 From: LoneyCc Date: Fri, 27 Sep 2019 17:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8E=B7=E5=8F=96ADB?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=8C=85=E5=90=AB=E7=A9=BA=E6=A0=BC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/MultiAdb.py | 4 +++- tools/Init_MiniCap.py | 4 +++- tools/Screencap.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/MultiAdb.py b/core/MultiAdb.py index 7e3c7e1..43781e9 100644 --- a/core/MultiAdb.py +++ b/core/MultiAdb.py @@ -18,7 +18,9 @@ def print(*args, **kwargs): _print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), *args, **kwargs) -adb = ADB().adb_path +adb_str = ADB().adb_path +if adb_str.count(' ') != 0: + adb = '\"' + adb_str + '\"' #同文件内用queue进行线程通信 q = queue.Queue() diff --git a/tools/Init_MiniCap.py b/tools/Init_MiniCap.py index 2bb117c..312cc51 100644 --- a/tools/Init_MiniCap.py +++ b/tools/Init_MiniCap.py @@ -14,7 +14,9 @@ def print(*args, **kwargs): _print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), *args, **kwargs) -adb = ADB().adb_path +adb_str = ADB().adb_path +if adb_str.count(' ') != 0: + adb = '\"' + adb_str + '\"' #用来给设备初始化MiniCap的,介绍见 https://blog.csdn.net/saint_228/article/details/92142914 def ini_MiniCap(devices): diff --git a/tools/Screencap.py b/tools/Screencap.py index 1b4c108..5237039 100644 --- a/tools/Screencap.py +++ b/tools/Screencap.py @@ -12,7 +12,9 @@ def print(*args, **kwargs): _print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()), *args, **kwargs) ''' -adb = ADB().adb_path +adb_str = ADB().adb_path +if adb_str.count(' ') != 0: + adb = '\"' + adb_str + '\"' reportpath = os.path.join(os.getcwd(), "Report") screenpath = os.path.join(reportpath, "Screen")