Skip to content

Commit 3694047

Browse files
committed
[ModelicaSystem] fix filename for model based on imported FMU
1 parent d808984 commit 3694047

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

16721672
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1673-
filepath = self._session.omcpath(filename)
1673+
filepath = self.getWorkDirectory() / filename
16741674

16751675
# report proper error message
16761676
if not filepath.is_file():

0 commit comments

Comments
 (0)