If you're on windows the following file is where the maya log handling stuff gets setup. Should be in a fairly similar place on other OSs
C:\Program Files\Autodesk\Maya2014\Python\Lib\site-packages\maya\utils.py That should hopefully give you a starting point for how they're hooking into stdout/stderr and getting it to the script editor. I honestly can't remember what I had done to get it logging to both a file and not interrupting the internal handler. On Thursday, July 28, 2016 at 10:38:10 AM UTC-5, Aaron Carlisle wrote: > > I wrote a logging system that redefines XStream and directs stdout and > stderr to a Qt window so that I can also log output to a file (selectively). > > This broke the Python print statement and the output of that will no > longer show up in Maya's script editor. > > Is there a way to reset Maya's internal Python printing? They're obviously > doing something in the API because it include line endings and coloring > output, I'm just not sure how to re-initialize it. > > Any input would helpful!! > > Thanks! > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/25ac4db1-4fb4-4a73-87e7-9501ccd834b6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
