0

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?

0

1 Answer 1

2

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/

Sign up to request clarification or add additional context in comments.

1 Comment

Found this a few minutes ago as well. This did the trick however, I need to also have an interactive session when requested or by default. That's for another question though. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.