0
我正在编写一些自动控制模拟器。我也在pycharm中使用WebDriverAgent
以及openatx
python绑定。在bash脚本中有一些使用cURL的快速方法,以及python解决方案中更强大的一些方法。我想要使用两者的组合。我已经将bashSupport
导入到pycharm中,并希望从项目的文件系统中执行bash脚本。如何从我的python项目执行一个bash脚本
我试过subprocess
import和os
但它似乎没有执行我的脚本。这里是一个例子:
import subprocess
subprocess.call(['launch_wda.sh'])
with device.session('com.apple.mobilesafari') as app:
print app.orientation
app(label="Address").tap()
app(label="Address").set_text("facebook.com \n")
launch_wda.sh
是在我的文件结构的项目。我的语法不正确还是缺少其他内容?