ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

Get rid of maya override package #299

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When manually installing pymel we currently provide a maya package override 
which used to fix some serious bugs and load order problems with the autodesk 
implementation, but now just fixes an exception formatting bug and adds a few 
features.  The existence of this package is a potentially dangerous maintenance 
situation, so we should look into removing it.

bugs fixed:
- maya.utils.formatGuiException: properly format exceptions with unicode decode 
errors or where the first arg on the exception object is not a string (like 
IOError)

features added:
- maya.utils.shellLogHandler: add MAYA_SHELL_LOGGER_STREAM env var for choosing 
an output stream other than sys.__stdout__.  seems limited in use because that 
stream can only be on sys, so likely just sys.__stderr__?
- maya.utils.loadStringResourcesForModule: provides traceback on error
- maya.app.startup.basic.executeSiteSetup: new function that provides a 
site-wide userSetup.py file called siteSetup.py

we should try to get the formatGuiException and executeSiteSetup into the next 
maya release.

Original issue reported on code.google.com by chad...@gmail.com on 26 Apr 2013 at 7:28