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
>主 题
*发送时间:*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
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
@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#
Hi,I'm using windows 7 64bit + Visual C#2012 to develop WinForm 32bit application with .Net Framework 4.0. I want to call some python script within my winform application.After read the document, i'm now able to call the following code within my WinForm application, and the result is correct.