We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 931f493 commit e3e3f62Copy full SHA for e3e3f62
1 file changed
OMPython/OMCSession.py
@@ -769,7 +769,7 @@ def omcpath(self, *path) -> OMCPath:
769
770
# fallback solution for Python < 3.12; a modified pathlib.Path object is used as OMCPath replacement
771
if sys.version_info < (3, 12):
772
- if isinstance(self._omc_process, OMCProcessLocal):
+ if isinstance(self, OMCProcessLocal):
773
# noinspection PyArgumentList
774
return OMCPath(*path)
775
raise OMCProcessException("OMCPath is supported for Python < 3.12 only if OMCProcessLocal is used!")
0 commit comments