Issue
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?
Solution
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/
Answered By - Charles Duffy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.