[Tutor] about calling external program in Python

Gabriel Dain gabrieldain at gmail.com
Wed May 17 15:06:41 CEST 2006


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

have you tried the following?
os.system('"C:\Program Files\EPANET2\epanet2d.exe" "C:\simulation
test\Network3_1.inp" "C:\simulation test\Network3_1.out'"')

-- 
Gabriel Dain


More information about the Tutor mailing list