def processEnded(self, reason): # Process ended override. # This override is to signal ready deferred if we never did, just in case. if self.ready_deferred and not self.ready_deferred.called: # must simulate processEnded callback value cba = { 'exitcode' : 0, 'outlines' : self.outlines, 'errlines' : self.errlines } self.ready_deferred.callback(cba) EnvOSProcess.processEnded(self, reason)
def processEnded(self, reason): # Process ended override. # This override is to signal ready deferred if we never did, just in case. if self.ready_deferred and not self.ready_deferred.called: # must simulate processEnded callback value cba = { 'exitcode': 0, 'outlines': self.outlines, 'errlines': self.errlines } self.ready_deferred.callback(cba) EnvOSProcess.processEnded(self, reason)
def processEnded(self, reason): EnvOSProcess.processEnded(self, reason) # remove temp file if we created one earlier if self.temp_file != None: os.unlink(self.temp_file)