Skip to content

Commit 769bd67

Browse files
committed
[OMCPathCompatibility] improve log messages
1 parent ad7d54f commit 769bd67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ class OMCPathCompatibility(pathlib.Path):
427427

428428
# modified copy of pathlib.Path.__new__() definition
429429
def __new__(cls, *args, **kwargs):
430-
logger.warning("Python < 3.12 - using a limited version of class OMCPath.")
430+
logger.warning("Python < 3.12 - using a version of class OMCPath "
431+
"based on pathlib.Path for local usage only.")
431432

432433
if cls is OMCPathCompatibility:
433434
cls = OMCPathCompatibilityWindows if os.name == 'nt' else OMCPathCompatibilityPosix

0 commit comments

Comments
 (0)