I have a Maya.env file with this line:
PYTHONPATH=/Users/myuser/blabla/something/maya
…and a userSetup.py file on that path.
In Maya I can see that /Users/myuser/blabla/something/maya has been added just fine - she reads the Maya.env file and appends the path (see below):
import sys
print(sys.path)
import os
print(os.environ[“PYTHONPATH”])
…both of these say that my path is added, but even though this is the case my userSetup.py is not executed at all during Maya startup.
The only thing I have atm in the userSetup.py is some prints and a pymel.core.cube() call. When I start up Maya I see no output in the script editor and no cube is created - my code simply doesn’t run.
What is going on?