PyFladesk
PyFladesk copied to clipboard
App window opens and then closes when bundled in an .exe
Hi I'm using windows 10, python 3.6.4, I'm trying to bunddle the example app into an .exe.
When I run it with this command it works just fine, it stays open but it shows the console (I dont want the console to be seen):
pyinstaller -F --add-data "templates;templates" --add-data "static;static" app.py
But if I run it with this command it shows a window and then closes.
pyinstaller -w -F --add-data "templates;templates" --add-data "static;static" app.py
It seems that when the console is closed the Flask server process is closed too. Any idea of how could this be solved?
Thanks in advance
I got the same issue