Commit fa4ad711 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

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

parent bd90e738
......@@ -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'))
......
Supports Markdown
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