Hey David, Another option is to put sitecustomize.py into a maya module path which is how we have done it.
We add the following to the Maya.env: MAYA_MODULE_PATH = %MAYA_RESOURCE_PATH%maya/modules/2010/;%MAYA_RESOURCE_PATH%maya/modules/ (Note we have a 2 entries one for version independent modules and one for specific versions.) I then have a folder setup as per the standard Maya module setup like: *Python/ * */scripts * *sitecustomize.py * */plug-ins /icons* In the %MAYA_RESOURCE_PATH%maya/modules/ folder you just need a text file in the standard maya module format: *+ thq_python 1234 R:\pipeline_tools\maya\modules\thq_python* (NOTE: as far as I can tell it has to be an absolute path, relative doesn't seem to work for me) This is picked up pretty much as soon as Maya is started and pymel can be added here. With this system we can have one for each version of Maya if we need to. More info on the module path setup can be found in the Maya docs here: *http://download.autodesk.com/us/maya/2010help/API/class_m_fn_plugin.html*<http://download.autodesk.com/us/maya/2010help/API/class_m_fn_plugin.html> It's a good system just needs to allow us to insert/remove module paths from the userSetup or sitecustomize.py scripts. Dave On Wed, Jun 16, 2010 at 7:35 AM, David Moulder <[email protected]>wrote: > Thanks Judah, > > I'll file this and the next time we're doing a release I'll look at it. > > On Tue, Jun 15, 2010 at 9:38 PM, Judah Baron <[email protected]> > wrote: > > David, > > We use a sitecustomize.py that simply lives in one of our python system > > paths and it works fine. > > It sounds like we are doing something similar. Here's an excerpt from our > > file that pushes the pymel path to the head to ensure the maya over-ride > > works properly: > > > > if os.environ.has_key('PYMELPATH'): > > if os.environ['PYMELPATH'] in sys.path: > > sys.path.remove( os.environ['PYMELPATH'] ) > > sys.path.insert(0, os.environ['PYMELPATH'] ) > > > > > > On Tue, Jun 15, 2010 at 11:19 AM, Chad Dombrova <[email protected]> > wrote: > >> > >>> Does that require manually deleting the pymel folder from the maya > >>> 2011 install folder? > >> > >> nope. just follow the installation instructions to make sure that the > >> external pymel is found on the pythonpath before the internal one. > >> -chad > >> > >> -- > >> http://groups.google.com/group/python_inside_maya > > > > -- > > http://groups.google.com/group/python_inside_maya > > > > -- > David Moulder > http://www.google.com/profiles/squish3d > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
