Skip to content

Commit 28fa972

Browse files
committed
[ModelicaSystem] simplify call to sendExpression()
1 parent 51c2096 commit 28fa972

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def __init__(
350350
self._session = OMCSessionLocal(omhome=omhome)
351351

352352
# get OpenModelica version
353-
version_str = self._session.sendExpression("getVersion()", parsed=True)
353+
version_str = self.sendExpression(expr="getVersion()")
354354
# remove 'OpenModelica ' at the start of the string and possible development ids (i.e. '~dev-26-g10bb273')
355355
version_str = version_str[13:version_str.find('~')]
356356
self._version = Version(version_str)

0 commit comments

Comments
 (0)