[Tutor] Executing a C Program from RH Linux in Python for Win

ALAN GAULD alan.gauld at btinternet.com
Thu Mar 19 11:55:16 CET 2009

> likely will allow the user to enter the
12 or so parameters 
> on the command line, and execute the program as
> I had entered it at a Linux prompt. 

OK, In that case you only need the call() convenience function from 
the subprocess module. Capture the arguments in your GUI and build 
the command options into a list. Pass that to subprocess.call()



Alan G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090319/5ae745e7/attachment.htm>

More information about the Tutor mailing list