Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

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

Open
LUS24 opened this issue Jul 18, 2019 · 1 comment
Open

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

LUS24 opened this issue Jul 18, 2019 · 1 comment

Comments

@LUS24
Copy link

LUS24 commented Jul 18, 2019

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

@BlackTurtle123
Copy link

I got the same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants