Go to: Synopsis. Return value. Keywords. Flags. Python examples.

Synopsis

getModulePath([moduleName=string])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

getModulePath is NOT undoable, NOT queryable, and NOT editable.

Returns the module path for a given module name.

Return value

string

Keywords

module

Flags

moduleName
Long name (short name) Argument types Properties
moduleName(mn) string create
The name of the module whose path you want to retrieve.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.getModulePath(moduleName='myModule')