Interact with a Windows console application via Python

后端 未结 5 1358
花落未央
花落未央 2020-12-03 02:17

I am using python 2.5 on Windows. I wish to interact with a console process via Popen. I currently have this small snippet of code:

p = Popen( [\"console_app         


        
5条回答
  •  生来不讨喜
    2020-12-03 02:36

    Had the exact same problem here. I dug into DrPython source code and stole wx.Execute() solution, which is working fine, especially if your script is already using wx. I never found correct solution on windows platform though...

提交回复
热议问题