The comment on that answer seems to answer your or problem here. While you are changing the sys.stdout reference you are only doing it at a point in time. Any module that gets loaded earlier and grabs a reference will have the original.
I thought there were already some Maya utilities for interfacing with the script editor? Maya has its own references that it moves into private stdout/stderr
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/f0605a26-6467-4eed-998a-dcfa8a31cfdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.