Self terminate a python program

Ernesto erniedude at gmail.com
Tue Nov 15 17:40:41 EST 2005


how do you self terminate a python program from within the code?

something similar to exit(0) in C.

I think the problem is that I'm using subprocess and popen to launch a
'.exe' file and python is "waiting" on the .exe file to finish.  since
it never does, the python program won't end.  how can I force it to end?




More information about the Python-list mailing list