pymel.tools.envparse.getMayaAppDir

getMayaAppDir(versioned=False)

Get the path to the current user’s Maya application directory.

First checks MAYA_APP_DIR, then tries OS-specific defaults.

Returns None, if not found

Parameters:
versioned : bool

if True, the current Maya version including ‘-x64’ suffix, if applicable, will be appended.

Return type:

str or None