File Applications/SpinW/m_files/sw_rootdir.m gives the path to the SpinW code rootdir = SW_ROOTDIR() See also SW.