Commit abbc5a06 authored by Marco Berzborn's avatar Marco Berzborn

fix for writing custom pathdef.m

parent a0321703
......@@ -55,10 +55,12 @@ if save_state == 1
userpath('reset');
end
userfolder = evalin('base','userpath');
userfolder = userfolder(1:end-1);
savepath([userfolder filesep 'pathdef.m']);
if strcmp(userfolder(end),pathsep)
userfolder = userfolder(1:end-1);
end
savepath(fullfile(userfolder,'pathdef.m'));
try
copyfile([fullpath filesep 'kernel' filesep 'StandardRoutines' filesep 'ita_startup.m'], [userfolder filesep 'startup.m'] )
copyfile(fullfile(fullpath,'kernel','StandardRoutines','ita_startup.m'), fullfile(userfolder,'startup.m'))
catch theError
ita_verbose_info('ita_path_handling:writing pathdef unsuccessful, because:',0);
disp(theError.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment