Python script prints console when scheduler starts

Possible duplicate:
Run python script without DOS shell appearing

I have a python script that runs a Windows Scheduler every 5 minutes. The script works fine, but every time it starts, it quickly loads the console onto my desktop before it closes automatically. Does anyone know how to remove this behavior? I would like him to just run in the background without knowing me.

+4
source share
1 answer

Run it pythonw instead of python ( pyw if you are using a new launcher).

+7
source

Source: https://habr.com/ru/post/1381045/


All Articles