load_ac3d

-now checking for absolute path works differently for pc and mac
parent aa428b83
......@@ -465,7 +465,14 @@ classdef load_ac3d
% check if path model has absolute or relative path (if ':" is
% in path, path is absolute)
if ~isempty(strfind(obj.modelFilename, ':'))
if ispc
isAbsolutePath = ~isempty(strfind(obj.modelFilename, ':'));
else
isAbsolutePath = ~isempty(obj.modelFilename) && strcmp(obj.modelFilename(1), filesep);
end
if isAbsolutePath
pathToModel = obj.modelFilename;
else
pathToModel = fullfile(pwd, obj.modelFilename);
......
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