[Maya 2015] userSetup.mel and .py dont run

Last day I was working on porting scripts from Maya 2012 to Maya 2015, currently I’m still working on Trial version as we are still awaiting licences, but I doubt that’s an issue.

I checked in documentation if anything changed, but I couldn’t find anything.

Files are placed in
C:/Users/USER/Documents/maya/2015-x64/scripts/userSetup.mel
C:/Users/USER/Documents/maya/2015-x64/scripts/userSetup.py

Same as 2012 (just number changed), PCs are running Win 7 and issue appeared on two machines that we test on.

None of the scripts load, also mel command:

whatIs userSetup.mel 

return Unknown, while in 2012 return path to userSetup.mel

Anyone had same issue while porting to 2015 or even 2014 maybe?

At the System Level, do you have an Environment Variable declared for MAYA_SCRIPT_PATH?
With Multiple Maya’s installed, you can end up with the different application folders added to your global PATH environment variable in an order that causes the wrong version’s path to be searched first.

In maya, execute the python lines:


import os
for p in os.getenv("MAYA_SCRIPT_PATH").split(";"):
    print p

to be sure Maya looks for MEL scripts in the right places !

For python do the same with the variable “PYTHONPATH”

you can also try this, just in case:


print cmds.internalVar(usd = True)

it will show you where Maya is getting it’s scripts from…

Thanks guys, this helped a lot.
I found out that MAYA_APP_DIR redirected this scripts folder search into another folder. I forgot that we did this a year ago ^^