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

On Sat, Sep 9, 2017, 1:05 PM jettam <[email protected]> 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 sys
> sys.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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/126bafad-d182-49d3-b552-36932b6a1646%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/126bafad-d182-49d3-b552-36932b6a1646%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0YgpOMxaJWBjb3PEGX5iAvW7vVO%3D%3DrMZSCpjR-HVRPnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to