Skip to content

Commit edb50bd

Browse files
committed
[ModelicaSystem] fix definition of fmu_path
1 parent 31ce3d2 commit edb50bd

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
@@ -1568,11 +1568,11 @@ def convertMo2Fmu(
15681568
properties = (f'version="{version}", fmuType="{fmuType}", '
15691569
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
15701570
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1571-
fmu_path = pathlib.Path(fmu)
1571+
fmu_path = self._work_dir / fmu
15721572

15731573
# report proper error message
15741574
if not fmu_path.is_file():
1575-
raise ModelicaSystemError(f"Missing FMU file: {fmu.as_posix()}")
1575+
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
15761576

15771577
return fmu_path
15781578

0 commit comments

Comments
 (0)