pymel.core.system.moduleInfo

moduleInfo(*args, **kwargs)

Returns information on modules found by Maya.

Flags:

Long Name / Short Name Argument Types Properties
definition / d bool ../../../_images/create.gif
  Returns module definition file name for the module specified by the -moduleName parameter.
listModules / lm bool ../../../_images/create.gif
  Returns an array containing the names of all currently loaded modules.
moduleName / mn unicode ../../../_images/create.gif
  The name of the module whose information you want to retrieve. Has to be used with either -definition / -path / -version flags.
path / p bool ../../../_images/create.gif
  Returns the module path for the module specified by the -moduleName parameter.
version / v bool ../../../_images/create.gif
  Returns the module version for the module specified by the -moduleName parameter. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.moduleInfo

Example:

import pymel.core as pm

pm.moduleInfo(listModules=True)
# Result: [u'mayatomr', u'substance'] #
pm.moduleInfo(definition=True, moduleName='myModule')
pm.moduleInfo(path=True, moduleName='myModule')
pm.moduleInfo(version=True, moduleName='myModule')