impure functiongetModelicaPath

Returns the Modelica library path.

Information

The OPENMODELICALIBRARY (MODELICAPATH in the language specification) is a list of paths to search when trying to load a library. It is a string separated by colon (:) on all OSes except Windows, which uses semicolon (;).

The default is the value of the environment variable OPENMODELICALIBRARY when omc starts, or ~/.openmodelica/libraries/ if it is not set. The environment variable MODELICAPATH is not used. To change the path while omc runs, use setModelicaPath().

The package manager installs libraries into ~/.openmodelica/libraries/. It can only be used if this directory is in the OPENMODELICALIBRARY as the same text, with or without the last '/'.

'~' is the directory that getHomeDirectoryPath() returns. On Windows it is %APPDATA%.

Outputs

TypeNameDefaultDescription
StringmodelicaPath