import maya.cmds as cmds path = cmds.workspace(query=True, rootDirectory=True) print path
Recommended Posts