[bugfix] reset stdout in Worker
This commit is contained in:
parent
0949a6deac
commit
eab416df3f
@ -138,6 +138,7 @@ class Worker(QRunnable):
|
|||||||
self.signals.result.emit(result)
|
self.signals.result.emit(result)
|
||||||
finally:
|
finally:
|
||||||
self.signals.finished.emit('Done')
|
self.signals.finished.emit('Done')
|
||||||
|
sys.stdout = sys.__stdout__
|
||||||
|
|
||||||
def write(self, text):
|
def write(self, text):
|
||||||
self.signals.message.emit(text)
|
self.signals.message.emit(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user