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.cli:command_line"],
How can I make it so that this program runs in the background like pythonw does?
CodePudding user response:
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/