Skip to content

Commit 4af4df8

Browse files
committed
[ModelicaSystem] fix filename for model based on imported FMU
1 parent 268edd9 commit 4af4df8

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)