1 parent 4985726 commit 0768b28Copy full SHA for 0768b28
1 file changed
OMPython/modelica_system_omc.py
@@ -147,7 +147,7 @@ def model(
147
# same directory tree (e.g. Tests/StableBouncingBall.mo). Copying
148
# just this one file into a randomly-named work directory breaks
149
# both of those, so load it in place instead.
150
- self._file_name = file_path
+ self._file_name = self._session.omcpath(file_path)
151
else:
152
self._file_name = self.getWorkDirectory() / file_path.name
153
if (isinstance(self._session, OMCSessionLocal)
0 commit comments