Skip to content

Commit 594ee5e

Browse files
committed
[ModelicaSystem] fix definition of fmu_path
1 parent 6d1a0e2 commit 594ee5e

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,11 +1613,11 @@ 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 = pathlib.Path(fmu)
1616+
fmu_path = self._work_dir / fmu
16171617

16181618
# report proper error message
16191619
if not fmu_path.is_file():
1620-
raise ModelicaSystemError(f"Missing FMU file: {fmu.as_posix()}")
1620+
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
16211621

16221622
return fmu_path
16231623

0 commit comments

Comments
 (0)