view +mpm/subpaths.m @ 14:d2c47b00e738

Add some stuff in todo
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 14 Sep 2018 16:21:57 +0200
parents f37b4c00a863
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