You want ScriptRuntime.IO.SetOutput/ScriptRuntime.IO.SetError which will let you set the I/O used for all the ScriptEngine's running in the given ScriptRuntime. You also now need to provide either a Stream and an Encoding or a Stream and a TextWriter. The reason for that is to support both text and binary output for scenarios such as PHP wanting to print a JPG.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Seruyange Sent: Thursday, April 17, 2008 10:59 AM To: IronPython IronPython Subject: [IronPython] Redirecting input/output in IronPython 2.x Hey everyone, looking at a lot of the samples online I see the following: pythonEngine.SetStandardError(s); pythonEngine.SetStandardOutput(s); where s is some stream. The Python Engine doesn't seem to support that method when I make a reference to IronPython 2.0. Am I missing something or are the online resources now obsolete? Thanks much - David ________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.<http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20>
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
