We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a245bbd commit 793c2c7Copy full SHA for 793c2c7
1 file changed
OMPython/OMCSession.py
@@ -434,7 +434,7 @@ def is_absolute(self) -> bool:
434
"""
435
Check if the path is an absolute path. Special handling to differentiate Windows and Posix definitions.
436
437
- if isinstance(self._session, OMCSessionLocal) and platform.system() == 'Windows':
+ if self._session.model_execution_windows and self._session.model_execution_local:
438
return pathlib.PureWindowsPath(self.as_posix()).is_absolute()
439
return pathlib.PurePosixPath(self.as_posix()).is_absolute()
440
0 commit comments