Fixed Windows vs Linux path separator issue.
parent
004d0fa30b
commit
6406bf97d4
|
@ -288,6 +288,7 @@ function [v, t] = getvarandtag(str)
|
|||
end
|
||||
|
||||
function blkname = getblockname(str, ROOT_FOLDER)
|
||||
str = strrep(str, '/', filesep());
|
||||
str = strrep(str, [ROOT_FOLDER filesep() 'blocks' filesep()], '');
|
||||
idx = strfind(str, filesep());
|
||||
blkname = str(1:idx(1)-1);
|
Loading…
Reference in New Issue