I have created a script in python and saved it as .pyw file so that I don’t need console to execute the script. I am wondering how to stop the execution once it is running. What I am doing right now is opening the IDLE and closing it and it seems to work. I am sure there is a better way of doing this. Can somebody advise me about this?
I have created a script in python and saved it as .pyw file so
Share
As it says in the docs
The
.pywextension is really meant to be used by Python GUIs. Since they create their own windows, the console window isn’t required. If a.pywscript doesn’t create any GUI windows, killing the python process is the only way to stop execution.If you don’t want to use the console to run your script (using the
.pyextension), just double-click on it.