J
Jean-Yves Nief
hi all,
I would like to know how I can retrieve in my main program the
return code from a thread 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")
in the main thread:
......
thrdExample = []
thrdExample.append(example(file))
......
# once it's not active anymore, test of the return code for
thrdExample ??
thanks in advance,
JY
I would like to know how I can retrieve in my main program the
return code from a thread 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")
in the main thread:
......
thrdExample = []
thrdExample.append(example(file))
......
# once it's not active anymore, test of the return code for
thrdExample ??
thanks in advance,
JY