When i run the script first time it downloads the file ngrok.exe in the python38\Lib\site-packages\pyngrok\bin folder and running the script second time it uses the downloaded ngrok.exe which is expected.
But when i make an executable file , then it downloads ngrok each time the user runs the executable file.
So how can I tell pyngrok to download the ngrok.exe only the first time when the executable executes and then use the downloaded file instead of downloading it each time?
here is my code snippet:
pyngrok_config = PyngrokConfig(region="au")
ngrok.set_auth_token(auth_code) # auth_code is a string
tunnel = ngrok.connect(4444, "tcp", pyngrok_config=pyngrok_config)