Thanks Marcus,

Sure adding to the PYTHONPATH can work too, however if I release a tool into the public space I don't want to have to support the artists that know nothing about setting that stuff up. I just want them to drop a directory in somewhere / exctract it, and have it just work. Activating the plug-in isn't a big issue either as it's standard.

Anything with editing env vars for artists is a tricky business and only leads to me not wanting to release tools to the public as I have to answer tech support emails. I've been through it too many times.

Thanks,
Eric T.

On 1/19/2015 9:35 AM, Marcus Ottosson wrote:
Hey Eric,

You can use multiple userSetup.py files, they will get read in the order they appear on the PYTHONPATH. Then you can have your users append a custom path to their PYTHONPATH, say the one pointing to your distribution, which will then get read durign startup, without the user having copy any files.

Not sure which way is better, but it is an alternative. It's how we do it for Pyblish and it has worked rather well; the PYTHONPATH is typically set during launch of an application, which basically makes it a method of exposing distributions on a per-project basis.

See for example.
https://github.com/abstractfactory/pyblish-maya/tree/master/pyblish_maya/pythonpath

Best,
Marcus
​
--
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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODZCVB4A9MoJ_1rRguyeefa9dqy_8nf44LQOjBNxjM76g%40mail.gmail.com <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODZCVB4A9MoJ_1rRguyeefa9dqy_8nf44LQOjBNxjM76g%40mail.gmail.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/54BD2211.3070405%40hybride.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to