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
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
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
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()