Skip to content

Commit 4367789

Browse files
committed
[ModelicaSystem] fix definition of fmu_path
1 parent 24f65a9 commit 4367789

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
@@ -1605,11 +1605,11 @@ def convertMo2Fmu(
16051605
properties = (f'version="{version}", fmuType="{fmuType}", '
16061606
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16071607
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1608-
fmu_path = pathlib.Path(fmu)
1608+
fmu_path = self._work_dir / fmu
16091609

16101610
# report proper error message
16111611
if not fmu_path.is_file():
1612-
raise ModelicaSystemError(f"Missing FMU file: {fmu.as_posix()}")
1612+
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
16131613

16141614
return fmu_path
16151615

0 commit comments

Comments
 (0)