Skip to content

Commit 84c73be

Browse files
committed
[OMCPath] add warning message for Python < 3.12
1 parent e8bd3d8 commit 84c73be

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

OMPython/OMCSession.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ def size(self) -> int:
417417

418418

419419
if sys.version_info < (3, 12):
420+
warnings.warn(
421+
message="Python < 3.12 - using a limited compatibility class as OMCPath replacement.",
422+
category=DeprecationWarning,
423+
stacklevel=1,
424+
)
425+
420426
class OMCPathCompatibility(pathlib.Path):
421427

422428
def size(self) -> int:

0 commit comments

Comments
 (0)