I have it in: C:\Users\avoorhees\Documents\maya\2016\scripts Although in my struggles, I've tried it lots of other places too. Robert, MAYA_SKIP_USERSETUP_PY was not set in my maya.env file (I also tried using a blank maya.env file just in-case).
On Tuesday, November 24, 2015 at 1:15:19 PM UTC-6, Aren Voorhees wrote: > > Hey everyone, > > I'm trying to use the userSetup.py to do some imports whenever Maya is > started up (ex. import pymel.core as pm, import maya.cmds as cmds, etc). > However I can't seem to get the file to run on Maya's startup. I know > I've done this before on a different computer without issue. Even boiling > it down to something as simple as putting: print "Hello World" in > userSetup.py doesn't do anything. > > Inside of Maya I've tried doing: > > import sys > > > for p in sys.path: > print p > > > Of course that gives me a list of paths...I've tried putting the > userSetup.py in many different of those places and still no luck. > > I also tried: > > print cmds.internalVar(usd=True) > > and putting userSetup.py there (which I had already tried earlier, but > hey, why not). > > I've also tried blowing away my maya.env file to make sure that wasn't > doing anything weird. > > Any ideas? > > Thanks! > -- 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/6f458dd2-76d6-41ba-ac66-7482a27f7ed8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
