[Python.NET] Runtime.Py_Main from within a Windows application

Denis Akhiyarov denis.akhiyarov at gmail.com
Tue Jan 16 22:59:07 EST 2018

Can you post a code sample? You need to set the STA threading like in this


On Tue, Jan 16, 2018, 1:35 PM Phat Loc <phat.loc at gmail.com> wrote:

> Hello,
> Is it possible to create a python repl from within a Windows application.
> I know it is possible from a Windows console application. However everytime
> I run Runtime.Py_Main from within a WPF app it just exits. Any suggestions
> on how to get an interactive version working or troubleshoot why
> it Runtime.Py_Main just exits with code 0?
> Thanks,
> Phat
> _________________________________________________
> Python.NET mailing list - PythonDotNet at python.org
> https://mail.python.org/mailman/listinfo/pythondotnet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20180117/81a0793d/attachment.html>

More information about the PythonDotNet mailing list