[Tutor] about calling external program in Python

Suri Chitti SChitti at manh.com
Wed May 17 12:15:50 CEST 2006


Does it return any error message??

 

________________________________

From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] On
Behalf Of Mu Mu
Sent: Wednesday, May 17, 2006 11:47 AM
To: Tutor at python.org
Subject: [Tutor] about calling external program in Python

 

Dear all, 

 

I'm trying to call an executable program in Python. I did the following,
but it doesn't work. Any help is appreciated. 

 

os.system('C:\Program Files\EPANET2\epanet2d.exe  C:\simulation
test\Network3_1.inp  C:\simulation test\Network3_1.out')

 

 

Thanks. 

 

J.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060517/4a97bf4b/attachment.htm 


More information about the Tutor mailing list