Serhiy Storchaka added the comment:
You should use some kind of inter-process communication to synchronize your
processes.
In particular, for get rid of a temporary script file you can either send
script via pipe:
p = Popen([sys.executable], stdin=PIPE)
p.stdin.write(longscript)
or use it as a program argument:
p = Popen([sys.executable, '-c', longscript])
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16734>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com