Skip to content
Snippets Groups Projects
Commit 6342dae6 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Setup routine now adds/installs the ITA Toolbox for each user individually and...

Setup routine now adds/installs the ITA Toolbox for each user individually and not for all users, which was leading to inconsistent Matlab environments for other users due to permission issues
parent 743096db
No related branches found
No related tags found
No related merge requests found
......@@ -46,12 +46,17 @@ if ~signalfound
end
%% Get root of RWTH-ITA-Toolbox
fullpath = which('ita_toolbox_setup.m');
fullpath = fileparts(fullpath);
addpath(fullpath); %add standard path here
tb_setup_path = which( 'ita_toolbox_setup.m' );
tb_base_path = fileparts( tb_setup_path );
% Switch to user pathdef instead of system-wide pathdef
% (which might open admin permissions dialog and corrupt Matlab for other users)
pathdef_user_path = fullfile( userpath(), 'pathdef.m' );
savepath( pathdef_user_path )
addpath( tb_base_path ); % ... now adds toolbox path to user pathdef.m
%% Add path to kernel, so basic functions are available
addpath([fullpath filesep 'kernel']);
addpath([tb_base_path filesep 'kernel']);
%% Add userpath, here might be our pathdef.m
addpath(userpath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment