Skip to content

Commit fd906cc

Browse files
committed
[OMCPathCompatibility] improve log messages
1 parent 9dc161b commit fd906cc

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
@@ -424,7 +424,8 @@ class OMCPathCompatibility(pathlib.Path):
424424

425425
# modified copy of pathlib.Path.__new__() definition
426426
def __new__(cls, *args, **kwargs):
427-
logger.warning("Python < 3.12 - using a limited version of class OMCPath.")
427+
logger.warning("Python < 3.12 - using a version of class OMCPath "
428+
"based on pathlib.Path for local usage only.")
428429

429430
if cls is OMCPathCompatibility:
430431
cls = OMCPathCompatibilityWindows if os.name == 'nt' else OMCPathCompatibilityPosix

0 commit comments

Comments
 (0)