It's also possible to append to the sys.path in a file named userSetup.py
which can live in your local maya/scripts folder.
import sys
sys.path.append('\this\nice\path')
On Thu, May 7, 2009 at 1:06 AM, scottbvfx <[email protected]> wrote:
>
> Maya automatically appends PTYHONPATH to sys.path
>
> PYTHONPATH should be defined in the Maya.env file (ie. ..\Documents
> \maya\2009\Maya.env)
>
> inside of Maya.env you would have something like PYTHONPATH=C:\Users
> \scott\Documents\python
>
> *Warning: an OS environment variable PYTHONPATH will override the one
> in Maya.env. I had to find this out the hard way
>
> Hope this helps.
> -Scott
> >
>
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---