Opened 17 years ago

Closed 12 years ago

#138 closed defect (worksforme)

loadFile executed with package.mo file

Reported by: donida Owned by: donida
Priority: critical Milestone:
Component: Command Prompt Environment Version: 1.4.3
Keywords: Cc: donida, Adrian Pop

Description


Change History (2)

comment:1 by donida, 17 years ago

When loading a package, with the following command:

loadFile("../path/to/package/dir/package.mo")

all *.mo files in parent directory ("../path/to/package/dir") are also loaded, this is not Modelica standard.

For more details see the attached example and load SimpleFluid/package.mo.

Even if the Media package in Media.mo, Interface package in Interface.mo, Example package in Example.mo and Components package in Components.mo are not void, when calling:

getClassNames(SimpleFluid.Examples) or
getClassNames(SimpleFluid.Interfaces) or
getClassNames(SimpleFluid.Components) or
getClassNames(SimpleFluid.Media)

void string is returned. I suppose because the SimpleFluid.mo file (that contains packages without models) is loaded as last file, even if it's on the parent directory.

comment:2 by Martin Sjölund, 12 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.