Skip to content

Commit 08f0ded

Browse files
committed
[ModelicaSystem] fix definition of fmu_path
1 parent 23bbf53 commit 08f0ded

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
@@ -1630,11 +1630,11 @@ def convertMo2Fmu(
16301630
properties = (f'version="{version}", fmuType="{fmuType}", '
16311631
f'fileNamePrefix="{fileNamePrefix}", includeResources={includeResourcesStr}')
16321632
fmu = self._requestApi(apiName='buildModelFMU', entity=self._model_name, properties=properties)
1633-
fmu_path = pathlib.Path(fmu)
1633+
fmu_path = self._work_dir / fmu
16341634

16351635
# report proper error message
16361636
if not fmu_path.is_file():
1637-
raise ModelicaSystemError(f"Missing FMU file: {fmu.as_posix()}")
1637+
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
16381638

16391639
return fmu_path
16401640

0 commit comments

Comments
 (0)