Re: [python-win32] Capturing stdout when running a Python Script

2006-10-29 Thread Mark Hammond
> I am afraid my orginal post was a bit unclear. I am looking for a way > to capture script output running in an ActiveScript Python host. I'm afraid that is not possible - some script code will need to perform that redirection for you, and that might need to happen for each script - the axscript

Re: [python-win32] Parameterless propget in Python ActiveScriptincomplete

2006-10-29 Thread Mark Hammond
Could you please open a bug at sourceforge so this doesn't get lost, as I'm afraid I don't have time right now to look at this... Thanks, Mark > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Johan Lindvall > Sent: Friday, 27 October 2006 8:00 PM > To:

Re: [python-win32] Capturing stdout when running a Python Script

2006-10-29 Thread Johan Lindvall
I managed to solve this by setting the Std Handles (SetStdHandle) and reopening stderr and s tdout of the Python CRT (vc 71) Our app is built with VC 8, so I had to use a Dll built with VC 7.1 to accomplish this (with LoadLibrary and GetProcAddress. Code references: http://msdn.microsoft.com/libr