How do I get ‘real-time’ information back from a subprocess.Popen in python (2.5)
Update with code that appears not to work (on windows anyway) class ThreadWorker(threading.Thread): def __init__(self, callable, *args, **kwargs): super(ThreadWorker, self).__init__() self.callable = callable self.args = args self.kwargs = kwargs self.setDaemon(True) def run(self): try: self.callable(*self.args, **self.kwargs) except wx.PyDeadObjectError: pass except Exception, e: print e if __name__ == “__main__”: import os from subprocess import Popen, PIPE def … Read more