We have a Windows Server that runs a python script every minute to send stats to a time-series-platform. So, every minute, we see a window that pops-up and disappears in a fraction of a second. If you access your server a lot, that's kinda irritating, so we had to run the python script without the console.
To run a python script without the console (popping-up):
- Save your python script with a .pyw extension (instead of .py)
- Run pythonw.exe (instead of python.exe)
Now, let's see if we'll miss that irritating console that's been playing eye tricks on us. :D
This comment has been removed by a blog administrator.
ReplyDelete