succesfully adding to PYTHONPATH using Maya.env

995 views
Skip to first unread message

stephenkmann

unread,
Sep 20, 2016, 4:22:00 PM9/20/16
to python_in...@googlegroups.com
Has  anyone been able to get the maya.env to add to an existing PYTHONPATH ? 

adding the MAYA_SCRIPT_PATH  is as easy as 

MAYA_SCRIPT_PATH = %MAYA_SCRIPT_PATH%, c:/myWwnDir

but doing the same with PYTHONPATH doesn't appear to be working. 

PYTHONPATH = %PYTHONPATH% , c/myOwnDir/

( does not add to the PythonPath) 

 I can certainly go and write some os.path.append  statements. but If possible I'd like to be to keep it in the MAYA.env and easily distributed.

thanks

-=s

Robert White

unread,
Sep 20, 2016, 4:48:59 PM9/20/16
to Python Programming for Autodesk Maya
Usually the path separator is ; not ,

Not sure if that is the potential problem here or not.
I've stopped using the Maya.env file, and instead do any environment variable setup in a maya module definition file.
Some links:

Stephen

unread,
Sep 21, 2016, 7:59:10 PM9/21/16
to python_in...@googlegroups.com
Ya I had ;  was just Messenging via phone. 

 I was hoping to reduce the number of setup locations and was hoping the end would work ...     

-=s 




--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3719af33-044f-49d0-8120-574466b3566d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages