Execute C code through Python

Peter Hansen peter at engcorp.com
Tue Oct 25 19:42:39 EDT 2005


Ernesto wrote:
> So i generated the .exe file "myFile.exe"
> 
> This is a Windows - text based application.  Right now, when I run:
> 
> import subprocess
> subprocess.call("myFile")
> 
> the application starts in its own console window.  Is there a way for
> it to run inside the python interface?

Google found the following (after I read the docs for subprocess and 
learned about the "startupinfo" flag, and searched for "subprocess 
startupinfo").  Does this help?

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/409002

-Peter



More information about the Python-list mailing list