def state_name(sname):
    return sname.split('.', 1)[0]


# Quick and dirty way to get attribute access for dictionary keys.
# So, we can do: ${apache.port} instead of ${apache['port']} when possible.
Optionally sets a new Menu Mode for the menu bar in the main Maya window. Returns the current Menu Mode, and if a new
dataset/ETHPy150Open saltstack/salt/salt/renderers/stateconf.py/state_name--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/core/windows.py/setMenuMode