Skip to content

Commit 6125e03

Browse files
committed
[ModelicaSystem] fix filename for model based on imported FMU
1 parent 818612d commit 6125e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ def convertFmu2Mo(
16381638
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
16391639

16401640
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1641-
filepath = self._getconn.omcpath(filename)
1641+
filepath = self.getWorkDirectory() / filename
16421642

16431643
# report proper error message
16441644
if not filepath.is_file():

0 commit comments

Comments
 (0)