view +mpm/verify.m @ 38:16d56bf04117

Change place of storage of the state
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 05 Dec 2018 15:43:13 +0100
parents 647cd9e354bf
children
line wrap: on
line source

% Check if the current proejct settings are correct
% The right version is in the path
% The right version is at the top of the path
%
% Useful to put at the top of some scripts
function verify(projectFolder)
    if ~exist('projectFolder', 'var') || isempty(projectFolder)
        projectFolder = pwd;
    end

    m = mpm.MatlabPathManager();
    if ~m.verify(projectFolder)
        error('Subpaths are not correctly loaded. Try running mpm.checkin()');
    end
end