Skip to content

Commit 1e88eb3

Browse files
committed
??? fix fmu export
1 parent ad0a04c commit 1e88eb3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,8 @@ def convertMo2Fmu(
16201620
properties = (f'version="{version}", fmuType="{fmuType}", '
16211621
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16221622
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1623-
fmu_path = self._work_dir / fmu
1623+
# TODO: check how to handle the path
1624+
fmu_path = self._work_dir / pathlib.Path(fmu).name
16241625

16251626
# report proper error message
16261627
if not fmu_path.is_file():

0 commit comments

Comments
 (0)