Hej Martin,

why cannot loadFile handle '\\' equivalent to '/'? That sounds a bit strange
to me.

Kind regards,
Lennart

-----Ursprüngliche Nachricht-----
Von: owner-openmodelicainter...@ida.liu.se
[mailto:owner-openmodelicainter...@ida.liu.se] Im Auftrag von Martin Sjölund
Gesendet: Donnerstag, 2. Oktober 2014 11:36
An: openmodelicainterest@ida.liu.se
Betreff: Re: How to load a package with subpackages in subdirectories in
OMShell?

Use front-slashes (/) and it should load the libraries as expected.
Or use loadModel() with the libraries already on your path.

--
Martin Sjölund

On 2014-10-02 11:17, Alexey Lebedev wrote:
>    Hello,
>
> When I use loadFile command in OMShell to load a package which contains
subpackages in subdirectories, it only loads the direct contents of
package.mo file (as far as I can tell). For example:
>
>
>>> loadFile("D:\\Modelica\\modelica-annex60-master\\Annex60\\package.mo")
>
> true
>
>
>
>>> list(Annex60.Controls)
>
> ""
>
>
>
>>> list(Annex60.Fluid.FixedResistances.FixedResistanceDpM)
>
> ""
>
>
>>> loadFile("D:\\Modelica\\OpenModelica1.9.0\\lib\\omlibrary\\Modelica
3.2.1\\package.mo")
>
> true
>
>
>
>>> list(Modelica.Math)
>
> ""
>
> Is it possible to make it load all the subpackages as well? Am I doing
something wrong?
>
> Regards,
>    Alexey Lebedev
>



Reply via email to