Skip to content

Commit

Permalink
fix: library import before opening model when model is inside a packa…
Browse files Browse the repository at this point in the history
…ge (#219)
  • Loading branch information
jules-l-jimmy committed Jul 3, 2024
1 parent 014193d commit e5bfca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e5bfca1

Please sign in to comment.