This function returns the absolute path of the uniform resource identifier by searching for a file with the name
file://uri modelica://uri modelica://dhcSim/uri
The function returns the absolute path of the first file that is found, using the above search order.
If the file is not found, then this function terminates with an assert
.
This function has been introduced to allow users to specify the name of weather data files with a path that is relative to the library path. This allows users to change the current working directory while still being able to read the files.
function getAbsolutePath input String uri "A uri"; output String path "The absolute path of the file pointed to by the URI"; end getAbsolutePath;
dhcSim
library
is on the MODELICAPATH
.