PyFladesk icon indicating copy to clipboard operation
PyFladesk copied to clipboard

App window opens and then closes when bundled in an .exe

Open LUS24 opened this issue 5 years ago • 1 comments

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

LUS24 avatar Jul 18 '19 15:07 LUS24

I got the same issue

BlackTurtle123 avatar Jul 31 '19 17:07 BlackTurtle123