We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f44f49c commit 1b64550Copy full SHA for 1b64550
1 file changed
OMPython/OMCSession.py
@@ -420,7 +420,12 @@ def size(self) -> int:
420
stacklevel=1,
421
)
422
423
- class OMCPathCompatibility(pathlib.Path):
+ if os.name == 'nt':
424
+ pathdef = pathlib.WindowsPath
425
+ else:
426
+ pathdef = pathlib.PosixPath
427
+
428
+ class OMCPathCompatibility(pathdef):
429
430
def size(self) -> int:
431
return self.stat().st_size
0 commit comments