Mercurial > repos > public > matlab_path_manager
view +mpm/verify.m @ 23:0b4be0d4e207
Use new class for state management
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 18 Sep 2018 11:52:14 +0200 |
parents | 02c290e2018c |
children | 647cd9e354bf |
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(d) if ~exist('d', 'var') || isempty(d) d = pwd; end m = mpm.MatlabPathManager(); if ~m.verify(d) error('Subpaths are not correctly loaded. Try running mpm.checkin()'); end end