Skip to content

Commit aedbd6d

Browse files
committed
[ModelicaSystem] fix _getconn => _session
1 parent f179b0d commit aedbd6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ def convertMo2Fmu(
16301630
properties = (f'version="{version}", fmuType="{fmuType}", '
16311631
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16321632
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1633-
fmu_path = self._getconn.omcpath(fmu)
1633+
fmu_path = self._session.omcpath(fmu)
16341634

16351635
# report proper error message
16361636
if not fmu_path.is_file():
@@ -1651,7 +1651,7 @@ def convertFmu2Mo(
16511651
>>> convertFmu2Mo("c:/BouncingBall.Fmu")
16521652
"""
16531653

1654-
fmu_path = self._getconn.omcpath(fmu)
1654+
fmu_path = self._session.omcpath(fmu)
16551655

16561656
if not fmu_path.is_file():
16571657
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")

0 commit comments

Comments
 (0)