view +mpm/clear.m @ 20:ddf75f18509f

Add verify command to ui specification
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 17 Sep 2018 15:46:16 +0200
parents ce34182c274e
children 02c290e2018c
line wrap: on
line source

% Remove all loaded subpaths from the matlab path
function clear()
    state = mpm.load_state();

    subpaths = state.added_paths.keys();

    for i = 1:length(subpaths)
        rmpath(subpaths{i});
        state.added_paths.remove(subpaths{i});
    end

    mpm.save_state(state);
end