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

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 That's a good

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 don't