We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5445c6 commit 7df431eCopy full SHA for 7df431e
OMPython/OMCSession.py
@@ -370,6 +370,12 @@ def __del__(self):
370
def omcpath(self, *path) -> OMCPath:
371
# TODO: need to handle PurePosixPath and PureWindowsPath
372
# define it here based on the backend (omc_process) used?
373
+
374
+ if sys.version_info < (3, 12):
375
+ raise OMCSessionException("OMCPath requires Python 3.12 or newer!")
376
+ # reason (3.11): TypeError: PurePath.__new__() got an unexpected keyword argument 'session'
377
+ # reason (3.10): TypeError: PurePath.__new__() got an unexpected keyword argument 'session'
378
379
return OMCPath(*path, session=self)
380
381
def execute(self, command: str):
0 commit comments