Skip to content

Commit 5580c05

Browse files
committed
[ModelicaSystem] fix path in convertFmu2Mo()
1 parent 08f0ded commit 5580c05

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
@@ -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._work_dir / fmu
1633+
fmu_path = self._getconn.omcpath(fmu)
16341634

16351635
# report proper error message
16361636
if not fmu_path.is_file():
@@ -1654,7 +1654,7 @@ def convertFmu2Mo(
16541654
fmu_path = pathlib.Path(fmu)
16551655

16561656
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1657-
filepath = pathlib.Path(filename)
1657+
filepath = self._work_dir / filename
16581658

16591659
# report proper error message
16601660
if not filepath.is_file():

0 commit comments

Comments
 (0)