Fixed Windows vs Linux path separator issue.

time-shift
Stéphane Adjemian (Charybdis) 2020-02-11 19:08:37 +01:00
parent 004d0fa30b
commit 6406bf97d4
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 1 additions and 0 deletions

View File

@ -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);