We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc85d91 commit aaf757aCopy full SHA for aaf757a
1 file changed
OMPython/ModelicaSystem.py
@@ -1075,7 +1075,7 @@ def simulate_cmd(
1075
version = self._session.sendExpression("getVersion()", parsed=True)
1076
print(f"OpenModelica version string: {version}")
1077
1078
- m = re.search(r"v(\d+)\.(\d+)\.(\d+)", s)
+ m = re.search(r"v(\d+)\.(\d+)\.(\d+)", version)
1079
if not m:
1080
raise ValueError("Version not found")
1081
0 commit comments