Community
import maya.cmds as cmds
import os.path
projectDirectory = cmds.workspace(q=True, rd=True)
currentScene = os.path.abspath(cmds.file(q=True, sn=True))
if 'scene' in cmds.workspace(q=True, frl=True):
sceneDirectory = os.path.join(projectDirectory, cmds.workspace(fre='scene'))
Can't find what you're looking for? Ask the community or share your knowledge.