Commit 0679f3b2 authored by jayd1860's avatar jayd1860
Browse files

-- Delete namespace only at end of path removal

parent 612bc83c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -75,7 +75,6 @@ options = parseOptions(options_str);


if ~options.add
if ~options.add
    options.conflcheck = false;
    options.conflcheck = false;
    deleteNamespace('Homer3');
end
end


[paths, wspaths, paths_excl_str] = getpaths(options);
[paths, wspaths, paths_excl_str] = getpaths(options);
@@ -169,6 +168,7 @@ if options.add
else
else
    fprintf('REMOVED search paths for workspace %s\n', pwd);
    fprintf('REMOVED search paths for workspace %s\n', pwd);
    rmpath(paths_excl_str{1});
    rmpath(paths_excl_str{1});
    deleteNamespace('Homer3');
end
end