- 获取maya用户我的文档目录
cmds.internalVar(userAppDir=True)
- 摘自stackoverflow–Maya.env custom [‘MAYA_SCRIPT_PATH’]
You may need to check the paths that Python is pointed to in order to see if it sees your directory.
import sys
for path in sys.path:
print path
You can also check the paths that are in PYTHONPATH like this.
for path in os.getenv('PYTHONPATH').split(';'): # May need to split with ':' depending on what OS you're in
print path