Skip to content

Commit 9d6cdeb

Browse files
committed
[ModelicaSystem] fix definition of fmu_path
1 parent c86f68b commit 9d6cdeb

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

15771577
# report proper error message
15781578
if not fmu_path.is_file():
1579-
raise ModelicaSystemError(f"Missing FMU file: {fmu.as_posix()}")
1579+
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
15801580

15811581
return fmu_path
15821582

0 commit comments

Comments
 (0)