开发者

How to execute a python script in .NET application..?

开发者 https://www.devze.com 2023-01-04 11:13 出处:网络
When user click Build button Python script needs to run.I execute this by using process but so many processes created when so many cli开发者_运维技巧cked the Build button, server hang.Trying my best t

When user click Build button Python script needs to run.I execute this by using process but so many processes created when so many cli开发者_运维技巧cked the Build button, server hang.


Trying my best to read between your (few) lines...

You could disable the button until the process finishes, so your users can't press it again until the script has completed.

Or, if you want to run the process synchronously instead, you might want to look into Process.WaitForExit().

0

精彩评论

暂无评论...
验证码 换一张
取 消