Skip to content

Commit

Permalink
[bugfix] Trying to fix a race condition that happens on empty graphs …
Browse files Browse the repository at this point in the history
…sometimes, on some computers.
  • Loading branch information
hartym committed Oct 29, 2017
1 parent 3fdefcd commit 06dc6b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bonobo/ext/console.py
Expand Up @@ -50,13 +50,15 @@ class ConsoleOutputPlugin(Plugin):
"""

def initialize(self):
def __init__(self, context):
super(ConsoleOutputPlugin, self).__init__(context)
self.prefix = ''
self.counter = 0
self._append_cache = ''
self.isatty = sys.stdout.isatty()
self.iswindows = (sys.platform == 'win32')

def initialize(self):
self._stdout = sys.stdout
self.stdout = IOBuffer()
self.redirect_stdout = redirect_stdout(self._stdout if self.iswindows else self.stdout)
Expand Down

0 comments on commit 06dc6b6

Please sign in to comment.