Skip to content

Commit e3e3f62

Browse files
committed
[OMCProcess] fix Python < 3.12
1 parent 931f493 commit e3e3f62

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
@@ -769,7 +769,7 @@ def omcpath(self, *path) -> OMCPath:
769769

770770
# fallback solution for Python < 3.12; a modified pathlib.Path object is used as OMCPath replacement
771771
if sys.version_info < (3, 12):
772-
if isinstance(self._omc_process, OMCProcessLocal):
772+
if isinstance(self, OMCProcessLocal):
773773
# noinspection PyArgumentList
774774
return OMCPath(*path)
775775
raise OMCProcessException("OMCPath is supported for Python < 3.12 only if OMCProcessLocal is used!")

0 commit comments

Comments
 (0)