Opened 17 years ago

Closed 11 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, adrpo

Description


Change History (2)

comment:1 Changed 17 years ago by donida

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 Changed 11 years ago by sjoelund.se

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.