[Tutor] about calling external program in Python

R. Alan Monroe amonroe at columbus.rr.com
Wed May 17 12:30:44 CEST 2006


> 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')

My first guess: you need quotes around paths with spaces in the names.

Alan



More information about the Tutor mailing list