We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51c2096 commit 28fa972Copy full SHA for 28fa972
1 file changed
OMPython/ModelicaSystem.py
@@ -350,7 +350,7 @@ def __init__(
350
self._session = OMCSessionLocal(omhome=omhome)
351
352
# get OpenModelica version
353
- version_str = self._session.sendExpression("getVersion()", parsed=True)
+ version_str = self.sendExpression(expr="getVersion()")
354
# remove 'OpenModelica ' at the start of the string and possible development ids (i.e. '~dev-26-g10bb273')
355
version_str = version_str[13:version_str.find('~')]
356
self._version = Version(version_str)
0 commit comments