parse the Maya.env file and set the environement variablas and python path accordingly. You can specify a location for the Maya.env file or the Maya version
pymel.tools.envparse.parse
pymel.tools.envparse.EnvLex
Enter search terms or a module, class or function name.