J
JY
hi all,
I would like to know how I can retrieve in my main thread (see
[A]) the
return code from a thread (see ) that I launched :
class example(threading.Thread):
def __init__(self, filename):
self.filename = filename
threading.Thread.__init__(self)
self.start()
def run(self):
........
rc = os.system("command example")
[A] in the main thread:
......
thrdExample = []
thrdExample.append(example(file))
......
once thrdExample is not active anymore, how can I test its return
code "rc" if the main thread ??
thanks in advance,
JY
I would like to know how I can retrieve in my main thread (see
[A]) the
return code from a thread (see ) that I launched :
class example(threading.Thread):
def __init__(self, filename):
self.filename = filename
threading.Thread.__init__(self)
self.start()
def run(self):
........
rc = os.system("command example")
[A] in the main thread:
......
thrdExample = []
thrdExample.append(example(file))
......
once thrdExample is not active anymore, how can I test its return
code "rc" if the main thread ??
thanks in advance,
JY