Skip to content

Commit 95113bd

Browse files
committed
[ModelicaSystem] update convertMo2Fmu() and convertFmu2Mo() to use pathlib.Path()
1 parent 0e674e5 commit 95113bd

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

16271627
filename = self._requestApi(apiName='importFMU', entity=fmu_path.as_posix())
1628-
filepath = self._work_dir / filename
1628+
filepath = self._getconn.omcpath(filename)
16291629

16301630
# report proper error message
16311631
if not filepath.is_file():

0 commit comments

Comments
 (0)