From e5bfca14a9debc3a05d53b4b6d780bf131074cac Mon Sep 17 00:00:00 2001 From: Jules Lecoustre <146657571+jules-l-jimmy@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:09:45 +0000 Subject: [PATCH] fix: library import before opening model when model is inside a package (#219) --- OMPython/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMPython/__init__.py b/OMPython/__init__.py index f2d1b42..622e6b9 100755 --- a/OMPython/__init__.py +++ b/OMPython/__init__.py @@ -860,8 +860,8 @@ def __init__(self, fileName=None, modelName=None, lmodel=[], useCorba=False, com self.setTempDirectory(customBuildDirectory) if fileName is not None: - self.loadFile(verbose) self.loadLibrary(verbose) + self.loadFile(verbose) ## allow directly loading models from MSL without fileName if fileName is None and modelName is not None: