[IronPython] Redirecting Input

Aravin avinhan at gmail.com
Thu Mar 4 10:56:02 CET 2010

Hi all,

In my application, I have a shell like control for users to interact with
tan embedded python engine. When the user enters some command and presses
<enter>, I use,

_engine.CreateScriptSourceFromString(code, SourceCodeKind

to execute the command. I have redirected the output so that any output
would be shown in my shell control. I would like to know how to redirect
input so that when a command contains, for e.g., "a = raw_input("Enter a
value: ")", I can prompt users to enter the value in my shell itself. I also
need to pause the execution till the users enter some value and press
<enter>. Can someone show me how to accomplish this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100304/3b531dd3/attachment.html>

More information about the Ironpython-users mailing list