Re: Sys.exit() does not fully exit

2008-02-17 Thread Christian Heimes
Gary Herron wrote: > That's a good answer. However, it you *do* want threads, and you don't > want the main thread to wait for the threads to quit, you can make the > threads "daemon threads". See setDaemon method on Thread objects in the > threading module. In general you are right. But I do

Re: Sys.exit() does not fully exit

2008-02-17 Thread Gary Herron
Christian Heimes wrote: > Harlin Seritt wrote: > >> When x is typed, everything does shut down but the main script never >> fully ends. Is there any way to get it to quit? >> > > You don't need threads. Please use the subprocess module instead of > threads + os.system. > > Christian > Th

Re: Sys.exit() does not fully exit

2008-02-17 Thread Christian Heimes
Harlin Seritt wrote: > When x is typed, everything does shut down but the main script never > fully ends. Is there any way to get it to quit? You don't need threads. Please use the subprocess module instead of threads + os.system. Christian -- http://mail.python.org/mailman/listinfo/python-list

Sys.exit() does not fully exit

2008-02-17 Thread Harlin Seritt
I have this script: import os, thread, threading, time, sys class Script1(threading.Thread): def run(self): os.system('runScript1.py') class Script2(threading.Thread): def run(self): os.system('runScript2.py') if __name__ == '__main__': s = Script1() s.start()