Skip to content

Commit d07bd42

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OMPython/ModelicaSystem.py

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

16711671
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1672-
filepath = self._session.omcpath(filename)
1672+
filepath = self.getWorkDirectory() / filename
16731673

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

0 commit comments

Comments
 (0)