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 Returns module definition file name for the module specified by the -moduleName parameter. listModules / lm bool Returns an array containing the names of all currently loaded modules. moduleName / mn unicode The name of the module whose information you want to retrieve. Has to be used with either -definition / -path / -version flags. path / p bool Returns the module path for the module specified by the -moduleName parameter. version / v bool 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')