Skip to content

Commit f82c8d0

Browse files
committed
[ModelicaSystem] fix definition of fmu_path
1 parent de3ca14 commit f82c8d0

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

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

16381638
return fmu_path
16391639

0 commit comments

Comments
 (0)