Maya の起動シーケンスの一部として、呼び出されたファイルが実行userSetup.py
されます。そのファイル内で、標準の python コードに固執して、環境などをセットアップできます。
ドキュメント: http://download.autodesk.com/global/docs/maya2013/en_us/index.html?url=files/Python_Python_in_Maya.htm,topicNumber=d30e725143
2013年のdoccoですが、2011年、2012年も有効です。さらに遡っても正しいと思いますが、ここでは古いものは実行していません
例として、私の userSetup.py ファイルは次のようになります。
import sys
# import a separate pyscript dir - we keep the standard scriptdir for MEL
sys.path.append(r'C:/Users/tanantish/Documents/maya/2012-x64/pyscripts')
# odds on i'm going to want PyMEL loaded by default
# and we are going to try distinguish it from the old maya.cmds
# since the two since they're similar, but not the same.
# from pymel.core import *
import pymel.core as pm
# and we might as well get maya.cmds in for testing..
import maya.cmds as mc
# import local toolpack
import tantools
(@jdi のコメントに従って、userSetup.py をキャップアウトするように編集)