Skip to content

Commit e5bfca1

Browse files
fix: library import before opening model when model is inside a package (#219)
1 parent 014193d commit e5bfca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,8 @@ def __init__(self, fileName=None, modelName=None, lmodel=[], useCorba=False, com
860860
self.setTempDirectory(customBuildDirectory)
861861

862862
if fileName is not None:
863-
self.loadFile(verbose)
864863
self.loadLibrary(verbose)
864+
self.loadFile(verbose)
865865

866866
## allow directly loading models from MSL without fileName
867867
if fileName is None and modelName is not None:

0 commit comments

Comments
 (0)