Alright solved it! It was one of those really stupid little things that you 
don't even look for and when you find it, you realize you're an idiot. I 
was importing pm.core instead of pymel.core in my local userSetup and 
obviously that was erroring out without printing any errors since maya 
isn't initalized yet. Yay typos.

Well thanks guys! Your help was much appreciated.

On Tuesday, June 10, 2014 12:01:18 PM UTC-4, Kenneth Polonski wrote:
>
> 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 <[email protected]>
>>  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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/eefc2259-5dd2-4737-950f-8f016672e62d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to