Craftr RTS patches sys.stdin, sys.stdout and sys.stderr in order to capture output from the tasks it executes in separate threads.
# xxx: Is there any other way than hard-patching the sys module?
thread_stdin = sys.stdin = ThreadIO(sys.stdin)
thread_stdout = sys.stdout = ThreadIO(sys.stdout)
thread_stderr = sys.stderr = ThreadIO(sys.stderr)
Craftr RTS patches
sys.stdin
,sys.stdout
andsys.stderr
in order to capture output from the tasks it executes in separate threads.It would be nice if we found a way to avoid that.