view +mpm/install_location.m @ 5:6c46515ee860

Add function for checking if the currently loaded paths are correct
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Sep 2018 16:35:17 +0200
parents 2007c2cd566a
children
line wrap: on
line source

function p = install_location()
   nameCurrentFile = mfilename('fullpath');
   pathParts = split(nameCurrentFile, filesep);

   p = join(pathParts(1:end-2), filesep);
   p = p{1};
end