4.1 initmaya -- Package initialization

This module contains code to initialize the Maya Python package. This initialization isn't strictly required for the Maya Python package to work but it adds some useful hooks to Maya. The initialization is invoked just by importing the module. For example, in the (MEL) Script Editor you could type the following:

py "import maya.initmaya";

The initialization will perform the following actions: