Thanks for the info Jesse. I really can't explain why it's not reading the local userSetup.py file and it's actually getting quite frustrating. My personal userSetup file is located in ~/maya/2014-x64/prefs/scripts folder and my commandPorts and everything don't work at all now since it wont load it. I'll keep trying to figure this out and I'll get back on what the issue was once I figure it out.
On Monday, June 9, 2014 6:42:51 PM UTC-4, Jesse Kretschmer wrote: > > *sitecustomize.py* is sourced by python each time the interpreter starts > up. Python will search the PYTHONPATH the first sitecustomize file found. > Immediately after it will search the same set of paths for > usercustomize.py. Both are meant to help you dynamically change your python > environment, though you can do loads more. I can't find a good doc page, > but this writeup is good: http://pymotw.com/2/site/. > > *userSetup *is only for Maya. Maya supports a *single *userSetup.mel > file, but since python was added, it now supports *multiple* userSetup.py > files. Maya loop over the entire sys.path and run execfile() on any > userSetup.py found. Read the friendly source here: > Maya2014/Python/Lib/site-packages/maya/app/startup/basic.py > > On Mon, Jun 9, 2014 at 12:03 PM, Kenneth Polonski <kpol...@gmail.com > <javascript:>> wrote: > >> How would it be possible for me to load the site wide userSetup.py file >> and still have the individual user's userSetup files be functional? > > > I run multiple userSetup.py files at my studio. I'm not sure why you would > have issues running multiple files. I created a single studio userSetup.py, > but I encourage users to create their own userSetup.py files which will get > executed *after* the studio version which is made available via the > PYTHONPATH. From the source maya will file and execute userSetup.py files > in this order <user>/maya/prefs/scripts, <user>/maya/scripts, > <user>/maya/<version>/scripts. > > -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3ee6731e-a39e-48da-8561-b5589681c35f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.