Skip to content

Commit 35cdc86

Browse files
committed
[ModelicaSystem] update convertMo2Fmu() and convertFmu2Mo() to use pathlib.Path()
1 parent 0799e62 commit 35cdc86

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

16421642
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1643-
filepath = self._work_dir / filename
1643+
filepath = self._getconn.omcpath(filename)
16441644

16451645
# report proper error message
16461646
if not filepath.is_file():

0 commit comments

Comments
 (0)