Re: [Python.NET] call python in Visual C# WinForm application

2016-10-13 Thread Brian Lloyd
wrote: > >sorry, i just send it again, since i do not see it at >https://mail.python.org/pipermail/pythondotnet/, i guess it might be lost, >thanks. > >- 原始邮件 - > >发件人:solospirit >发送时间:2016-10-11 22:18:27 >收件人:A list for users and developers of Python for .NET >主 题

Re: [Python.NET] call python in Visual C# WinForm application

2016-10-13 Thread Denis Akhiyarov
*发送时间:*2016-10-11 22:18:27 > > *收件人:*A list for users and developers of Python for .NET< > pythondotnet@python.org> > > *主 题:*回复:Re: [Python.NET] call python in Visual C# WinForm application > > Thanks Denis. > > > I tried the following code, it still does no

Re: [Python.NET] call python in Visual C# WinForm application

2016-10-12 Thread solospirit
doing so can cause the application to hang.Actually, my script is called when a button on winform is clicked, it is not called as the above exception message says.- 原始邮件 -发件人:Denis Akhiyarov发送时间:2016-09-27 01:54:22收件人:A list for users and developers of Python for .NET主 题:Re: [Python.NET] call p

Re: [Python.NET] call python in Visual C# WinForm application

2016-09-26 Thread Denis Akhiyarov
@solospirit: You are doing illegal things with Python and believe me - it bites back :) Remember that in Python you cannot just import modules (.py) just from arbitrary paths, unless you are using importlib or sys.path. Hence here is the correct workflow using sys.path: *Microsoft (R) Roslyn C#