Reputation: 488
I currently have my program set up to run with Command Line Scripts (https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html) like so:
"console_scripts": ["app_name = app_name.app:main"],
How can I make it so that this program runs in the background like pythonw does?
Upvotes: 0
Views: 55
Reputation: 295696
Instead of console_scripts
, something that should be run as a GUI application goes in gui_scripts
.
"console_scripts": ["app_name = app_name.cli:command_line"],
"gui_scripts": ["app_name = app_name.gui:start_window"],
See https://packaging.python.org/en/latest/specifications/entry-points/
Upvotes: 2