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")