Skip to content

Commit 84d8379

Browse files
committed
[ModelicaSystem] fix _getconn => _session
1 parent 8479725 commit 84d8379

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
@@ -1658,7 +1658,7 @@ def convertMo2Fmu(
16581658
properties = (f'version="{version}", fmuType="{fmuType}", '
16591659
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16601660
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1661-
fmu_path = self._getconn.omcpath(fmu)
1661+
fmu_path = self._session.omcpath(fmu)
16621662

16631663
# report proper error message
16641664
if not fmu_path.is_file():
@@ -1679,7 +1679,7 @@ def convertFmu2Mo(
16791679
>>> convertFmu2Mo("c:/BouncingBall.Fmu")
16801680
"""
16811681

1682-
fmu_path = self._getconn.omcpath(fmu)
1682+
fmu_path = self._session.omcpath(fmu)
16831683

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

0 commit comments

Comments
 (0)