【发布时间】:2021-07-06 03:51:07
【问题描述】:
我有一个问题,
-
我在使用时无法从 python 中调用 allure
os.system("allure" + "serve" + 'link_path_report') 或者 subprocess.run(['allure serve link_path_report'])
cmd show "'allure' 未被识别为内部或外部命令, 可运行的程序或批处理文件。”
但是当我手动输入命令到 cmd 时它工作正常
【问题讨论】:
-
使用诱惑的完整路径。有点像 /usr/bin/allure。