Message177805
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]) |
|
Date |
User |
Action |
Args |
2012-12-20 08:54:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, techtonik, neologix |
2012-12-20 08:54:32 | serhiy.storchaka | set | messageid: <1355993672.48.0.816030208943.issue16734@psf.upfronthosting.co.za> |
2012-12-20 08:54:32 | serhiy.storchaka | link | issue16734 messages |
2012-12-20 08:54:32 | serhiy.storchaka | create | |
|