Maya.env PYTHONPATH

894 views
Skip to first unread message

Erkan Özgür Yılmaz

unread,
Jul 7, 2014, 9:45:21 AM7/7/14
to python_inside_maya
Do any one know, why in the world that Maya is not picking up PYTHONPATH variable value from Maya.env under Fedora 20?

It is able to pickup MAYA_PLUG_IN_PATH or MAYA_SCRIPT_PATH but not PYTHONPATH. The same setup was working fine under Windows 7 but not in Fedora 20, any idea?

E.Ozgur Yilmaz
eoyilmaz.blogspot.com

Erkan Özgür Yılmaz

unread,
Jul 7, 2014, 10:05:12 AM7/7/14
to python_inside_maya
It seems that setting a PYTHONPATH variable both in ".bash_profile" and "Maya.env" is not working together and ".bash_profile" always overrides "Maya.env"

E.Ozgur Yilmaz
eoyilmaz.blogspot.com

Erkan Özgür Yılmaz

unread,
Jul 7, 2014, 10:08:54 AM7/7/14
to python_inside_maya
I mean even using something like PYTHONPATH=$PYTHONPATH:/some/path is not working

E.Ozgur Yilmaz
eoyilmaz.blogspot.com

Marcus Ottosson

unread,
Jul 7, 2014, 10:50:08 AM7/7/14
to python_in...@googlegroups.com

What happens when you set PYTHONPATH in a shell from Windows? Does that override your Maya.env too or is it just Fedora?

$ set PYTHONPATH=/some/path
$ maya


--
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/CAGNmyx5xbcfTHJi2ED3VtdHz1038CCrcpVeKaWHrfiqhojCQ%2Bw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Erkan Özgür Yılmaz

unread,
Jul 7, 2014, 11:26:26 AM7/7/14
to python_inside_maya

I think it is just fedora, cause I was using the same environment vars and same Maya.env file (with correct paths of course), anyway I'm only setting the PYTHONPATH in Maya.env and it is working fine, and we are not using too many shell scripts that needs a proper PYTHONPATH so it is fine for now.

Ozgur
eoyilmaz.blogspot.com

Reply all
Reply to author
Forward
0 new messages