Skip to content

ModelicaSystem does not Load Libraries before Model #218

@jules-l-jimmy

Description

@jules-l-jimmy

On the latest OMPython, when using ModelicaSystem class with custom packages installed in custom directory and loading a model inside these packages, I have an error due to the fact that ModelicaSystem init loads the file and then the library.

To solve this, I exchanged the loadFile and loadLibrary in the __init__.py file line 862

Now it looks like this

        if fileName is not None:
            self.loadLibrary(verbose)
            self.loadFile(verbose)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions