自动化终端的入口 [英] Automating an entry for terminal

查看:160
本文介绍了自动化终端的入口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,真的不知道该怎么问。我会尝试尽可能地解释。

I have a problem which do not really know how to ask. I will try to explain as best as possible.

我使用的是bash脚本来自动执行安装过程。在这个过程中间我作出称为configure.py Python脚本调用。该脚本预计输入端子。

I have to automate an installation process using a bash script. In the middle of the process I make a call to a Python script called configure.py. This script expects input terminal.

有没有办法通过传递参数终端等待调用脚本?

Is there any way to call the script by passing terminal arguments waiting for?

Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.11.4 (licensed under the GNU General Public
License) for Python 2.7.9 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? yes

感谢您这么多。

推荐答案

PyQt的配置脚本具有自动确认接受该许可证的一个选项:

The PyQt configure script has an option which automatically confirms acceptance of the licence:

python configure.py --confirm-license

由于有需要用户输入PyQt的安装过程中没有其他部位,这应该是你所需要的。有关详细信息,请参见在PyQt的文档安装PyQt4的

这篇关于自动化终端的入口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆