On Mon, Sep 25, 2017, 9:31 PM illunara <[email protected]> wrote:

> Hi Justin
>
>> You should be able to use Maya's python interpreter from standalone shell
>> scripts outside Maya. But it's usually better to install external libraries
>> into an external PYTHONPATH, and then just add that path to Maya using
>> Maya.env or userSetup.py
>>
>
> I don't understand what is the external PYTHONPATH mean? Would you give me
> an example how to do it please? I would like to add pyhook package (
> http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook) so i can interact with
> window input system, Thanks
>

Here is some information about how the PYTHONPATH works and how to
configure it on Windows :

https://www.londonappdeveloper.com/setting-up-your-windows-10-system-for-python-development-pydev-eclipse-python/

https://docs.python.org/2/using/windows.html

Basically it can be any directory you want. The common default location is
a scripts/ directory within your standard python system install. But you
can designate any directory as long as it is on your PYTHONPATH. You can
set that in your system variables or on the fly in your shell with
virtualenv.

Here is information about setting custom PYTHONPATH locations for Maya :

https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/Maya/files/GUID-C0F27A50-3DD6-454C-A4D1-9E3C44B3C990-htm.html

Maya also has a scripts/ locations for you by default that acts a place to
easy install modules.

Does that help?



> --
> 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/3d806e3a-0d82-40d9-8b50-bb760edbd5c4%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/3d806e3a-0d82-40d9-8b50-bb760edbd5c4%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/CAPGFgA3jA7WUZ3ZsNt15t_WGd2et7Vm3Tt4%2BeWqBEvXwNXW7gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to