view +mpm/subpaths.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 a9795512f33a
children 19c4af287596
line wrap: on
line source

function sp = subpaths(d)
    if ~exist('d', 'var') || isempty(d)
        d = pwd;
    end

    % TODO: Nice error message if file doesn't exist
    fstr = fileread('.subpaths');
    sp = splitlines(strtrim(fstr));
end