Skip to content

Commit ab37478

Browse files
committed
[OMCPath] fix forward dependency on OMCSessionLocal
1 parent da0cf41 commit ab37478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def is_absolute(self) -> bool:
434434
"""
435435
Check if the path is an absolute path. Special handling to differentiate Windows and Posix definitions.
436436
"""
437-
if isinstance(self._session, OMCSessionLocal) and platform.system() == 'Windows':
437+
if self._session.model_execution_windows and self._session.model_execution_local:
438438
return pathlib.PureWindowsPath(self.as_posix()).is_absolute()
439439
return pathlib.PurePosixPath(self.as_posix()).is_absolute()
440440

0 commit comments

Comments
 (0)