Thanks for that Kent.  I did

imex_exe=r'C:\Program Files\CMG\IMEX\2005.10\EXE\mx200510.exe'
imex_args=('mx200510.exe','-f',imex_fil,'-wd','"'+work_dir+'"')

for n in range(1,nscen):
        os.spawnv(os.P_WAIT, imex_exe, imex_args)

and it seems to work.  Not sure why I need to provide the name of the application twice though: the lib pages for spawn* say "In either case, the arguments to the child process must start with the name of the command being run" but hey, it works!

Thanks again

Alun

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to