Message5561
This is an embedded scenario.
I've set the output stream for the interpreter: print and sys.stdout.write behave as expected; subprocess.call() does not.
Example code shown in the attached files.
Results of running the example are shown below. I expected all of the output to be written to the output stream specified to the interpreter, but that wasn't the case.
Output written directly to stdout (problem: bypassed the specified output stream):
===================================================================================
from subprocess.call without stdout;
Output written to the output stream (as expected):
==================================================
os received: [from print;
from sys.stdout; from subprocess.call with stdout;
] |
|
Date |
User |
Action |
Args |
2010-03-05 04:52:49 | steveims | set | recipients:
+ steveims |
2010-03-05 04:52:49 | steveims | set | messageid: <1267764769.04.0.204780398253.issue1569@psf.upfronthosting.co.za> |
2010-03-05 04:52:48 | steveims | link | issue1569 messages |
2010-03-05 04:52:48 | steveims | create | |
|