Skip to content

Commit 07349a0

Browse files
committed
[ModelicaSystem] fix filename for model based on imported FMU
1 parent dfb466d commit 07349a0

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
@@ -1698,7 +1698,7 @@ def convertFmu2Mo(
16981698
raise ModelicaSystemError(f"Missing FMU file: {fmu_path.as_posix()}")
16991699

17001700
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1701-
filepath = self._session.omcpath(filename)
1701+
filepath = self.getWorkDirectory() / filename
17021702

17031703
# report proper error message
17041704
if not filepath.is_file():

0 commit comments

Comments
 (0)