Haha, it can be a cluster fuck though :). As Eric pointed out, the userSetup.py is a good entry point as it gets run every time maya starts. I don't bother messing with the Maya.env file at all. If you can at least get a single userSetup.py into to user's PYTHONPATH before startup, you should be good to go from there. We've solved these issues by having wrapper scripts to startup our applications. This gives us complete control for setting up the user's environment. You'll also want to look at the available environment variables Maya offers. That's where you'll solve your shelf issue.
userSetup.py is run early enough that you can manipulate the environment variables using os.environ. We also use python scripts to start our applications and feed environment dictionaries into the subprocess.Popen command. Hope that helps some. Best, On Wed, Jul 16, 2014 at 9:47 AM, Eric Thivierge <[email protected]> wrote: > Pardon the language folks. I thought I replied directly to Mike. :\ > > > On Wednesday, July 16, 2014 9:44:14 AM, Eric Thivierge wrote: > >> Hey Mike, >> >> Good luck with this. It's an utter cluster fuck. :\ >> >> There are two things I think you'll need to manage: >> >> Maya.env >> ===================== >> Location: C:\Users\ethivierge\Documents\maya\2014-x64\Maya.env >> >> File contents: >> MAYA_MODULE_PATH=U:\PROD\Creation >> Platform\Splice\maya\1.11\FabricSpliceMaya2014SP3; >> >> This is in mine currently. That is pointing to locations with Maya >> plugins in them. >> >> >> userSetup.py >> ===================== >> Location: >> C:\Users\ethivierge\Documents\maya\2014-x64\scripts\userSetup.py >> >> File contents: >> import sys >> sys.path.append("D:\dev") >> >> This adds Python folders to the Maya python path. >> >> >> Hope that helps. The setup of this kind of configuration is still >> confusing to me and I don't fully understand it. >> >> Best, >> Eric T. >> >> >> On Wednesday, July 16, 2014 9:33:56 AM, md wrote: >> >>> Hey Guys, >>> >>> I am sure this is an*RTFM* question ... but can anyone point me to >>> instructions on setting up a network repository for scripts and >>> shelves I want to auto-load on all our workstations ? >>> >>> I will continue to read the docs, but thought someone here might be >>> able to give me direct information. >>> >>> Thanks >>> >>> M >>> >>> -- >>> 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/ >>> 248ba126-108f-4d39-964c-1e1c311ceb14%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/python_inside_maya/ >>> 248ba126-108f-4d39-964c-1e1c311ceb14%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/53C6828D.6060709%40hybride.com. > > For more options, visit https://groups.google.com/d/optout. > -- Tony -- 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/CAJhmvsS_dJ3AcL7gbO7e6DBzj467pnu4YM3hvvokHKoAcDFHbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
