exit entire process in threaded script

Hank soundwave56 at yahoo.ca
Wed Nov 5 20:39:33 EST 2003


Hi, 

I have the following:

def readuser():
   ...check for user input then exit entire script

thread.start_new_thread(readuser,())

while(forever):
   ...do something


How can I exit the whole script from readuser()? sys.exit() only exits
that thread and not the entire process. I'm trying not to use any
win32 modules.

python 1.5
win2k

thanks




More information about the Python-list mailing list