python executing windows exe

Gabriel Genellina gagsl-py at yahoo.com.ar
Thu Feb 1 18:16:47 EST 2007


En Thu, 01 Feb 2007 19:57:59 -0300, Kiran <Kiran.Karra at gmail.com> escribió:

>   I am making python run an executable using the os module.  Here is
> my question.  The executable, once it is running, asks the user to
> input a filename that it will process.  Now, my question is how do i
> automate this.  let me make this clear, it is not an argument you pass
> in when you type in the exe.  An example below illustrates:

You can use the subprocess module, or any of the Popen2 variants. Usually  
they work fine - but depending on how the application behaves, it may not  
work.

-- 
Gabriel Genellina




More information about the Python-list mailing list