在Python的外部终端上打开.exe
我想在外部终端上运行.EXE文件。 使用此代码,我设法运行了.EXE,但是它以同一终端开始,我称之为脚本,
import subprocess
subprocess.call(["C:/Users/Alessandro/Downloads/BOSCH-GLM/BOSCH-GLM/dist/glm50.exe"])
是否可以在外部终端上运行它?
I would like to run a .exe file on external terminal.
With this code I managed to run the .exe but it starts on the same terminal I call the script
import subprocess
subprocess.call(["C:/Users/Alessandro/Downloads/BOSCH-GLM/BOSCH-GLM/dist/glm50.exe"])
Is there a way to run it on external terminal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用
subprocess.popen
而不是subprocess.call
。看看讨论在这里。您可以忽略
.communate()
调用。Try using
subprocess.Popen
instead ofsubprocess.call
.Take a look at the discussion here. You can ignore the
.communicate()
call.