Mercurial > repos > public > matlab_path_manager
view +mpm/subpaths.m @ 8:f37b4c00a863
Add better error message for missing .subpaths
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 10 Sep 2018 17:29:26 +0200 |
parents | 19c4af287596 |
children |
line wrap: on
line source
function sp = subpaths(d) if ~exist('d', 'var') || isempty(d) d = ''; end try fstr = fileread(fullfile(d, '.subpaths')); catch error('Subpath definition file ''.subpaths'' not found.') end sp = splitlines(strtrim(fstr)); end