Open fhi2023 opened 12 months ago
Have you tried setting it to: C:/Users/XXX/SES_EL;%APPDATA%/.openmodelica/libraries
?
You will need to replace %APPDATA% with what it is on your machine.
Of course you can also load your library by drag-and-drop your Library/package.mo into OMEdit library browser, then you don't need to change your MODELICAPATH.
I thought one should not directly set MODELICAPATH
, but OPENMODELICALIBRARY
, as per the OM user guide?
Nowadays the installer does not set OPENMODELICALIBRARY
or OPENMODELICAHOME
anymore so users can run several versions of OpenModelica. I thought we use MODELICAPATH
if is set but it seems you are right and we do not. Strangely we have some error messages naming it but we don't read it from the environment anywhere as far as I can tell.
Yes, if you set OPENMODELICALIBRARY
that will be read by omc
and OMEdit
via getModelicaPath
:
https://build.openmodelica.org/Documentation/OpenModelica.Scripting.getModelicaPath.html
You can also set it via scripting using:
https://build.openmodelica.org/Documentation/OpenModelica.Scripting.setModelicaPath.html
Discussed in https://github.com/OpenModelica/OpenModelica/discussions/11039