[Maya-Python] Re: Supporting pymel in Maya 2009 and 2011

2010-06-15 Thread hapgilmore
Does that require manually deleting the pymel folder from the maya
2011 install folder?

On Jun 10, 11:50 pm, Chad Dombrova chad...@gmail.com wrote:
 i'd just like to stress that the best solution is to use pymel 1.0 for both 
 2009 and 2011.  you can put a single installation on a network mount and 
 point both versions of maya at it.

 -chad

-- 
http://groups.google.com/group/python_inside_maya


Re: [Maya-Python] Re: Supporting pymel in Maya 2009 and 2011

2010-06-15 Thread David Moulder
We haven't, we're using sitecustomize.py to insert a new system path
and import pymel, it's all explained in the docs. So you won't need to
remove any default Maya folders.

The problem is that sitecustomize needs to be in the
Maya/Python/Libs/SitePackages folder on every machine.  We have an Art
Pipelines installer that manages that copy.  If this is wrong then I'd
like to know if sitecustomize can be run from a different location.

We have multiple teams on different branches of code.  Each team will
be locked on that branch (unless they need to take a new release) and
therefore each branch could have a different pymel version.  I believe
we had 4 different version of pymel at one time.  We only have 1 now.
But the sitecustomize method worked for us.



On Tue, Jun 15, 2010 at 6:10 PM, hapgilmore hapgilm...@hotmail.com wrote:
 Does that require manually deleting the pymel folder from the maya
 2011 install folder?

 On Jun 10, 11:50 pm, Chad Dombrova chad...@gmail.com wrote:
 i'd just like to stress that the best solution is to use pymel 1.0 for both 
 2009 and 2011.  you can put a single installation on a network mount and 
 point both versions of maya at it.

 -chad

 --
 http://groups.google.com/group/python_inside_maya




-- 
David Moulder
http://www.google.com/profiles/squish3d

-- 
http://groups.google.com/group/python_inside_maya


Re: [Maya-Python] Re: Supporting pymel in Maya 2009 and 2011

2010-06-15 Thread Chad Dombrova
 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

Re: [Maya-Python] Re: Supporting pymel in Maya 2009 and 2011

2010-06-15 Thread Judah Baron
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 chad...@gmail.com 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