On Sat, Sep 9, 2017, 2:26 PM Robert White <robert.wd.wh...@gmail.com> wrote:
> 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. > That is evil. And also very like Autodesk. > > 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.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 <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 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 python_inside_maya+unsubscr...@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 >>> <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 python_inside_maya+unsubscr...@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 > <https://groups.google.com/d/msgid/python_inside_maya/e24f62ac-5133-4ccb-8806-049c86b8cc30%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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0PgN1-kaF_P6yAL48eiks%3DSpCMmOrDYCn3t4Ax%3DhDZTA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.