[Tutor] about calling external program in Python

2006-05-16 Thread Mu Mu
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. _

Re: [Tutor] about calling external program in Python

2006-05-17 Thread Mu Mu
Dear all,   I tried the following:   >>> os.system(r'C:\\simulation test\\epanet2d.exe C:\\simulation test\\Network3_1.inp C:\\simulation test\\Network3_1.out')1>>> os.system('C:\simulation test\epanet2d.exe C:\simulation test\Network3_1.inp C:\simulation test\Network3_1.out') 1>>> os.system(r'C:

Re: [Tutor] about calling external program in Python

2006-05-17 Thread Mu Mu
ed 'C:\Program Files\EPANET2' into the system path.   In the cmd line: I typed python c:\test.py. It ran and then gave the output.   Don' t know why command line works. but pythonwin interface failed .   Thanks. J.  On 5/17/06, Alan Gauld <[EMAIL PROTECTED]> wrote: "Mu Mu&qu