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
