We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f44f49c commit efd7392Copy full SHA for efd7392
1 file changed
OMPython/OMCSession.py
@@ -420,12 +420,20 @@ def size(self) -> int:
420
stacklevel=1,
421
)
422
423
- class OMCPathCompatibility(pathlib.Path):
+ if os.name == 'nt':
424
+ class OMCPathCompatibility(pathlib.WindowsPath):
425
- def size(self) -> int:
426
- return self.stat().st_size
+ def size(self) -> int:
427
+ return self.stat().st_size
428
- OMCPath = OMCPathCompatibility # noqa: F811
429
+ OMCPath = OMCPathCompatibility # noqa: F811
430
+ else:
431
+ class OMCPathCompatibility(pathlib.PosixPath):
432
+
433
434
435
436
437
438
else:
439
OMCPath = OMCPathReal
0 commit comments