This exe always starts two processes pproxy.exe and one of them always remains hanging after completion.. Whereas just running the code always starts one Python interpreter and closes it gracefully on completion.
Next example also behaves correctly when run natively.
But if his build on pyinstaller to test.exe, it doesn't terminate after 5 seconds but starts running an infinite amount test.exe.
I am redirecting browser requests through proxies that require authorization, and since browsers don't support such proxies, I have to use an intermediary.
In principle, native launch solves the problem, but when I need to distribute code in conditions where this is unacceptable, then I have to endure these difficulties.
Could you suggest how it would be possible to build the proxy into an executable file in order to use it for such a simple purpose?
When I bulild this code to
pproxy.exe
:This exe always starts two processes
pproxy.exe
and one of them always remains hanging after completion.. Whereas just running the code always starts one Python interpreter and closes it gracefully on completion.Next example also behaves correctly when run natively.
But if his build on pyinstaller to
test.exe
, it doesn't terminate after 5 seconds but starts running an infinite amounttest.exe
.I am redirecting browser requests through proxies that require authorization, and since browsers don't support such proxies, I have to use an intermediary.
In principle, native launch solves the problem, but when I need to distribute code in conditions where this is unacceptable, then I have to endure these difficulties.
Could you suggest how it would be possible to build the proxy into an executable file in order to use it for such a simple purpose?