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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODZCVB4A9MoJ_1rRguyeefa9dqy_8nf44LQOjBNxjM76g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to