Thank you, Martin! Now it works. I didn't expect that the difference in slashes would have this much importance :)
Regards, Alexey -----Ursprungligt meddelande----- Från: [email protected] [mailto:[email protected]] För Martin Sjölund Skickat: den 2 oktober 2014 11:36 Till: [email protected] Ämne: 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 >
