function sp = subpackages(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
