pymel.mayautils.getMayaLocation¶
- getMayaLocation(version=None)¶
Get the path to the Maya install directory.
Note
The Maya location is defined as the directory above /bin.
Uses the MAYA_LOCATION environment variable and sys.executable path.
Returns None if not found.
Parameters: - version : bool
if passed, will attempt to find a matching Maya location. If the version found above does not match the requested version, this function uses a simple find/replace heuristic to modify the path and test if the desired version exists.
Return type: str or None