Skip to content

Commit 843cb2c

Browse files
committed
[ModelicaSystem] simplify call to sendExpression()
1 parent cd3a9b9 commit 843cb2c

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
self._version = self._parse_om_version(version=version_str)
355355
# set commandLineOptions using default values or the user defined list
356356
if command_line_options is None:

0 commit comments

Comments
 (0)