Skip to content

Commit 406afb0

Browse files
committed
[ModelicaSystem] fix path in convertFmu2Mo()
1 parent 594ee5e commit 406afb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ def convertMo2Fmu(
16131613
properties = (f'version="{version}", fmuType="{fmuType}", '
16141614
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16151615
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1616-
fmu_path = self._work_dir / fmu
1616+
fmu_path = self._getconn.omcpath(fmu)
16171617

16181618
# report proper error message
16191619
if not fmu_path.is_file():
@@ -1637,7 +1637,7 @@ def convertFmu2Mo(
16371637
fmu_path = pathlib.Path(fmu)
16381638

16391639
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1640-
filepath = pathlib.Path(filename)
1640+
filepath = self._work_dir / filename
16411641

16421642
# report proper error message
16431643
if not filepath.is_file():

0 commit comments

Comments
 (0)