MatrixBerryCore
MatlabPathMgr.m
Go to the documentation of this file.
1 classdef MatlabPathMgr
2  methods (Static)
3  function setUp(rootDirList)
4  if ischar(rootDirList)
5  rootDirList={rootDirList};
6  end
7  disp('Setting MatrixBerry path...');
8  [~,pathPatternToExclude]=...
10  if ~isempty(pathPatternToExclude)
11  pathPatternToExclude=[pathPatternToExclude,...
12  '|((\\|\/)(\@|\+|private))'];
13  end
14  pathList=...
15  mxberry.io.PathUtils.genPathByRootList(rootDirList,...
16  pathPatternToExclude);
17  warning('off','MATLAB:lang:cannotClearExecutingFunction');
18  restoredefaultpath;
19  warning('on','MATLAB:lang:cannotClearExecutingFunction');
20  addpath(pathList{:});
21  disp('Setting MatrixBerry path: done.');
22  end
23  end
24 end
25 
static function getOwnAndDepCodeDirList()
static function genPathByRootList(in pathToIncludeCVec, in pathPatternToExclude)
GENPATHBYROOTLIST recursively generates a list of path based on a list of root path and a regular exp...