Skip to content

Commit aaf757a

Browse files
committed
Fix version
1 parent dc85d91 commit aaf757a

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
@@ -1075,7 +1075,7 @@ def simulate_cmd(
10751075
version = self._session.sendExpression("getVersion()", parsed=True)
10761076
print(f"OpenModelica version string: {version}")
10771077

1078-
m = re.search(r"v(\d+)\.(\d+)\.(\d+)", s)
1078+
m = re.search(r"v(\d+)\.(\d+)\.(\d+)", version)
10791079
if not m:
10801080
raise ValueError("Version not found")
10811081

0 commit comments

Comments
 (0)