https://build.openmodelica.org/Documentation/OpenModelica.Scripting.uriToFilename.html
loadModel(Modelica);getErrorString();
uriToFilename("modelica://Modelica/Resources");getErrorString();
$ omc a.mos
true
""
"/mnt/mech/trunk/build/lib/omlibrary/Modelica 3.2.1/Resources"
""
Because the normal use-case for URIs is to resolve
Include/LibraryDirectory annotations, modelica:// for a class that is
not loaded is not supported. This is partly due to ambiguous versions of
libraries.
list(OpenModelica.Scripting.uriToFilename) shows the code used to
implement it, with the comments in the wrong places. But I guess you
know how to open ModelicaBuiltin.mo anyway ;)
--
Martin Sjölund
On 03/07/2013 09:38 PM, Bill Janssen wrote:
Hi.
Is there any support anywhere in OpenModelica for resolving
"modelica://" format URIs? If so, where?
Thanks.
Bill