Skip to content

Commit 654562a

Browse files
committed
[ModelicaSystem] fix _getconn => _session
1 parent 56bc162 commit 654562a

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
@@ -1629,7 +1629,7 @@ def convertMo2Fmu(
16291629
properties = (f'version="{version}", fmuType="{fmuType}", '
16301630
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16311631
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1632-
fmu_path = self._getconn.omcpath(fmu)
1632+
fmu_path = self._session.omcpath(fmu)
16331633

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

1653-
fmu_path = self._getconn.omcpath(fmu)
1653+
fmu_path = self._session.omcpath(fmu)
16541654

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

0 commit comments

Comments
 (0)