class documentation
class ThreadWithReturn(threading.Thread):
requires: import threading usage: run_cmd_threaded(cmd) which does this ... dbug("Just getting started...") cmd = "/home/geoffm/ofrd.sh" t1 = ThreadWithReturn(target=run_cmd, args=(cmd,)) t1.start() dbug("Done") result = t1.join() dbug(result)