Commit 0f3d725f authored by jayd1860's avatar jayd1860
Browse files

-- Don't add current app twice. Check app include list to see if it already...

-- Don't add current app twice. Check app include list to see if it already has been added to search paths
parent 24c6af81
Loading
Loading
Loading
Loading
+126 −121
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ function setpaths(options)
currdir = pwd;

try
    
    warning('off','MATLAB:rmpath:DirNotFound');
    
    appname = 'Homer3';
@@ -179,6 +180,10 @@ setNamespace(appname);
    
    % Add back all search paths for all other apps except for current app
    for ii = 1:length(appInclList)
        % This app's path has already been added
        if pathscompare_startup(appInclList{ii}, appThis)
            continue;
        end
        foo = findDotMFolders(appInclList{ii}, exclSearchList);
        addSearchPaths(foo);
    end