Skip to content

Commit 2ab787f

Browse files
committed
[ModelicaSystem] update convertMo2Fmu() and convertFmu2Mo() to use pathlib.Path()
1 parent 7695fad commit 2ab787f

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

16581658
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1659-
filepath = self._work_dir / filename
1659+
filepath = self._getconn.omcpath(filename)
16601660

16611661
# report proper error message
16621662
if not filepath.is_file():

0 commit comments

Comments
 (0)