Sounds like it should be a ticket ;-) https://trac.openmodelica.org/OpenModelica/ticket/2857
-----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Martin Sjölund Gesendet: Donnerstag, 2. Oktober 2014 12:16 An: [email protected] Betreff: Re: AW: How to load a package with subpackages in subdirectories in OMShell? I don't know. Maybe because none of the Windows developers considered it important? There are some calls in there that *say* the function converts \ to /. But maybe it doesn't for some reason. I cannot test it myself since I do not use Windows... -- Martin Sjölund On 2014-10-02 11:47, Lennart Ochel wrote: > Hej Martin, > > why cannot loadFile handle '\\' equivalent to '/'? That sounds a bit > strange to me. > > Kind regards, > Lennart > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Martin > Sjölund > Gesendet: Donnerstag, 2. Oktober 2014 11:36 > An: [email protected] > 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.m >>>> o") >> >> 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 >> > > >
