pymel.core.system.getModulePath

getModulePath(*args, **kwargs)

Returns the module path for a given module name.

Flags:

Long Name / Short Name Argument Types Properties
moduleName / mn unicode ../../../_images/create.gif
  The name of the module whose path you want to retrieve. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.getModulePath

Example:

import pymel.core as pm

pm.getModulePath(moduleName='myModule')