function [mlroot,altmlroot] = getMATLABDirs(h,buildInfo)
% NOTE: the first directory listed in the 'special dirs' is
% always 'matlabroot'

%   Copyright 2014 The MathWorks, Inc.

specialDirs = buildInfo.Settings.getSpecialDirsAndTokens( 'includeAltNames', true, 'includeEmptyNames', true, 'includeRegexpPats', true );
% Always try to replace these tokens.  These need to go in
% genMakefileAndBuild because the MAKEFILE_FILESEP macro may
% have been set.
mlroot = specialDirs.regexpPats{ 1 };
altmlroot = specialDirs.regexpAltNamePats{ 1 };
end
