[Ironpython-users] How to direct print output to the Console in a windows standalone?

Pawel Jasinski pawel.jasinski at gmail.com
Sun Nov 16 23:58:14 CET 2014


hi,

On Sun, Nov 16, 2014 at 10:48 PM, John Trinder <trinderjohn at talktalk.net> wrote:
> Hi,
> I didn't know whether this is the correct site for help from the IP
> community but here goes.
>
> I have a DLL written in C# that opens a Console window inside a Windows app.
> I am utilizing this for use with IronPython when creating a Windows app as a
> standalone that needs the Console window along with the other windows.
>
> It works fine doing for eg, Console.WriteLine() but output from the IP print
> method is not displayed.
>
> How can I tell IP to send output from 'print' to the Console? I'm sure the
> answer is simple but I'm out of ideas.

Just as an inspiration
http://stackoverflow.com/questions/24456530/capture-python-print-statements-in-c-sharp/24489136#24489136

>
> Thanks for any help given.
>
> PS I've attached the .cs file if anyone's interested in how it's done (NB. I
> didn't create the code)
>
> _______________________________________________
> Ironpython-users mailing list
> Ironpython-users at python.org
> https://mail.python.org/mailman/listinfo/ironpython-users
>


More information about the Ironpython-users mailing list