diff options
| author | zhangchengwei <[email protected]> | 2022-10-10 14:53:57 +0800 |
|---|---|---|
| committer | zhangchengwei <[email protected]> | 2022-10-10 14:53:57 +0800 |
| commit | 96cabc19e66dc64e6c75726783255ac4bc3a6d4b (patch) | |
| tree | 50024f216700ab23e9b511bd47054c2fc391d3da | |
| parent | 5f1fd85edf416feb5489095e0d0a99ae42a2c8d5 (diff) | |
更新airtest中control脚本路径查找逻辑
| -rw-r--r-- | airtest_script/App_automation/air_test_auto/control.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/airtest_script/App_automation/air_test_auto/control.py b/airtest_script/App_automation/air_test_auto/control.py index bb14acf..00432d6 100644 --- a/airtest_script/App_automation/air_test_auto/control.py +++ b/airtest_script/App_automation/air_test_auto/control.py @@ -27,7 +27,11 @@ packet_name = args_list[3] report_name = args_list[4] # 固定参数 -command = "python D:/App_automation/air_test_auto/app" +path1 = os.path.dirname(__file__) +path_app = os.path.join(path1, "app") +#command = "python D:/App_automation/air_test_auto/app" +command = "python {}".format(path_app) +command = command.replace("\\", "/") deviceid1 = test_device_id deviceid2 = '39174eb7' |
