-2
I am working with a project and need the user to have the option to terminate it at any time, the cleanest way to do this I have found so far was by the process manager terminating the python process:
And this returns me the following message:
Because it is something that was done via task manager I think maybe there is something that can be written at the command prompt via script to perform the same task.
Ps: I’ve done some research and found several ways to terminate a script but I’ve tried using exit()
, sys.exit()
and quit()
but they don’t completely shut down the code because my code uses Threading.
Maybe the path I’m following isn’t the best one for the situation, so any help on how to shut down the code altogether will be welcome.
I recommend you edit the question and enter your code. If you yourself suspect that you are not doing it right, we need to see the code to know how you did it.
– Woss