You can add them to your userSetup.mel or userSetup.py files in your
scripts directory.
just add it like this:
userSetup.mel:
python("import
sys;sys.path.append('S:/python');sys.path.append('X:/some/path/python');");
As soon as Maya loads the path(s) will be available. this is the easiest
way. And you can have it load any modules there you want to load
automatically.
if you have a package you would like to load, then it's best to put it in
the site-packages directory in your maya install
On Mon, Mar 28, 2016 at 9:36 PM, Crest Christopher <
[email protected]> wrote:
> Thanks for the info. ;-)
>
> I just want to know what is the path used so I can append it to my system
> environment variable MAYA_APP_DIR so Python modules are loaded by default
> for Maya.
>
>
>
> Geordie Martinez <[email protected]>
> Tuesday, March 29, 2016 12:17 AM
> If I were you I'd just install Anaconda and let Anaconda deal with
> appending variables based on versions.
>
> https://www.continuum.io/downloads
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABPXW4jT6N6L91Kb7DTkZiOijy6ASNDm0pOCUKWUXrXnCMqNPw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
> Christopher. <[email protected]>
> Monday, March 28, 2016 10:00 PM
> I have Python 2.6 (26) & Python 2.7 (27) installed, what is the path used
> for the modules to append to a system environment
> variable; C:\Python27\modules\modules ?
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python_inside_maya/CzEXgn-GIaI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/9a38daef-9c8e-4d80-8db3-52411b381dd0%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/56FA063B.4090507%40gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/56FA063B.4090507%40gmail.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/CABPXW4ihFwiLnoJUJ%2BUK3Ga3u-WEJrgeaKRA%3DwySK9cw5RVdXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.