Skip to content

Commit 0768b28

Browse files
committed
use omcpath
1 parent 4985726 commit 0768b28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎OMPython/modelica_system_omc.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def model(
147147
# same directory tree (e.g. Tests/StableBouncingBall.mo). Copying
148148
# just this one file into a randomly-named work directory breaks
149149
# both of those, so load it in place instead.
150-
self._file_name = file_path
150+
self._file_name = self._session.omcpath(file_path)
151151
else:
152152
self._file_name = self.getWorkDirectory() / file_path.name
153153
if (isinstance(self._session, OMCSessionLocal)

0 commit comments

Comments
 (0)