Calling an exe within Python

James Lockley poseidon_cma at my-deja.com
Tue Jan 30 09:40:59 EST 2001



 Wayne> (2) When I do such a call, does execution within the Python
>script wait for the
> exe to finish or does it spawn a new threat for the exe and move on?

 try this:

  cmd=os.popen(call)
  list=cmd.readlines()
  result=cmd.close()

list contains the output of the call; result means waits for end
cheers
james


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list