I’ve build a .exe using cx_freeze for windows using the Win32 build. The .exe operates as expected for the most part but downloading (On a separate thread) using tf.keras.utils.get_file causes a interesting bug.
If the application is launched from its build folder or by running Application.exe in a CMD window the tf.keras.utils.get_file will not download the specified file. However if I run the application from the CMD window AND pipe the stdout into a log.txt (like: application.exe > log.txt) the specified file is downloaded.
I am at a loss for why the application only works when the output is piped somewhere.
I have tried moving the build folder to Appdata/roaming and running from there but the same bug happens.
Edit: I’m going to try subprocess instead of threading and see if the issue persists.