Its set by Maya's default environment variables, which can be modified in the Maya.env
https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Maya/files/Environment-Variables-File-path-variables-htm.html
Specifically, the PYTHONHOME dictates the root for the python standard library being injected into the PYTHONPATH
--
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/126bafad-d182-49d3-b552-36932b6a1646%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Its set by Maya's default environment variables, which can be modified in the Maya.env
https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Maya/files/Environment-Variables-File-path-variables-htm.htmlSpecifically, the PYTHONHOME dictates the root for the python standard library being injected into the PYTHONPATH
On Sat, Sep 9, 2017, 1:05 PM jettam <justin...@gmail.com> wrote:
--Would someone be able to tell me what file maya is sourcing to find this list. For example if I type "import sys" "sys.path" I get a list of all the folders maya looks in.import syssys.path# Result: ['','C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\cafm','C:\\Program Files\\Autodesk\\Maya2017\\bin','C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\MASH\\scripts\\MASH','C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\bifrost\\scripts\\boss','C:\\solidangle\\mtoadeploy\\2017\\scripts',Thanks you.
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_maya+unsub...@googlegroups.com.
Also, a fun fact, starting with Maya 2017, the import paths are scrambled during startup by maya.Basically they are doing:sys.path = list(set(sys.path) | set(os.environ.get('PYTHONPATH', '').split(os.pathsep)))The idea is that they are trying to eliminate duplicates, which this does, but because they are putting everything into sets, it scrambles the order.
On Friday, September 8, 2017 at 8:23:24 PM UTC-5, Justin Israel wrote:
Its set by Maya's default environment variables, which can be modified in the Maya.env
https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Maya/files/Environment-Variables-File-path-variables-htm.htmlSpecifically, the PYTHONHOME dictates the root for the python standard library being injected into the PYTHONPATH
On Sat, Sep 9, 2017, 1:05 PM jettam <justin...@gmail.com> wrote:
--Would someone be able to tell me what file maya is sourcing to find this list. For example if I type "import sys" "sys.path" I get a list of all the folders maya looks in.import syssys.path# Result: ['','C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\xgen\\scripts\\cafm','C:\\Program Files\\Autodesk\\Maya2017\\bin','C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\MASH\\scripts\\MASH','C:\\Program Files\\Autodesk\\Maya2017\\plug-ins\\bifrost\\scripts\\boss','C:\\solidangle\\mtoadeploy\\2017\\scripts',Thanks you.
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/126bafad-d182-49d3-b552-36932b6a1646%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/e24f62ac-5133-4ccb-8806-049c86b8cc30%40googlegroups.com.
Easiest place to places scripts while learning everything is in (if you're on windows) `C:/Users/<you>/documents/maya/2017/scripts`No clue on other OS's off the top of my head though.
On Saturday, September 9, 2017 at 10:48:08 AM UTC-5, jettam wrote:I am using maya 2017. Robert mentioned things work differently in maya 2017. I am very new to scripting in Maya and could really do with some help with this question.I need to place my python modules in a custom path, and I am confused as to where to put this custom path, so that maya will read it.Do I put that custom path into my maya.env folder or into my userSetup.mel. The maya.env file existed but there is nothing in it!? and the userSetup.met file does not exist, am I suppose to create this one?
--
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/613ef293-c493-4225-9cfd-0c202b379ad6%40googlegroups.com.