Under Debian/Octave, matlab2tikz.m is already in the path, so don't add it twice

time-shift
Sébastien Villemot 2013-06-24 12:23:46 +02:00
parent bd90e73854
commit fa4ad71185
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ end
% matlab2tikz
if strncmp(computer, 'GLNX', 4) || ~isempty(regexpi(computer, '.*linux.*', 'once'))
if exist('/usr/share/matlab2tikz/matlab2tikz.m') == 2
if exist('matlab2tikz.m') == 0 && exist('/usr/share/matlab2tikz/matlab2tikz.m') == 2
addpath('/usr/share/matlab2tikz');
end
elseif strncmp(computer, 'MACI', 4) || ~isempty(regexpi(computer, '.*apple.*', 'once'))