Skip to content

Commit

Permalink
Move test UriLookup.mos. Allow non-existing files at the time of comp…
Browse files Browse the repository at this point in the history
…ilation for UriLookup.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15800 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 12, 2013
1 parent 3f807f1 commit 182b8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/ModelicaBuiltin.mo
Expand Up @@ -1892,7 +1892,7 @@ algorithm
if isMatch then
/* We already have a match for the first part. The full name was e.g. Modelica.Blocks, so we now see if the Blocks directory exists, and so on */
if directoryExists(filename + "/" + matches2[2]) then
filename := filename + "/" + matches2[2];
filename := realpath(filename + "/" + matches2[2]);
else
break;
end if;
Expand All @@ -1912,7 +1912,7 @@ algorithm
end if;
end if;
end while;
filename := if isMatch then realpath(filename + "/" + matches[3]) else filename;
filename := if isMatch then filename + matches[3] else filename;
elseif isFileUriAbsolute then
(,matches) := regex(uri,"file://(/.*)?",2);
filename := matches[2];
Expand Down

0 comments on commit 182b8de

Please sign in to comment.