I'm trying to understand how popen2 works. Found in this group, that
popen2.popen2 can cause trouble so i chose win32pipe.popen2.
have a look a the listing of 2 files:
ekmain.py:
**************
import win32pipe
(stdin1, stdout1) = win32pipe.popen2("test1.py")
stdin1.write("1\n")
print stdout1.readlines() # This will print the result.
**************
test1.py:
**************
a=raw_input("a=")
print "***a=",a
print "finished!"
**************
i do not understand, why ekmain.py produces only following output:
['a=']
why is the stdin1.write("1\n") command ignored?
i tried to find an answer in this group by searching through existing
article, but i had no success.
tanks for you help!
ernst
p.s.: i working with python 2.3 on win2000.