osver()
Description:
Determines OS version.
On Linux, numerical OS version (e.g 38
) is returned.
On Mac systems, OS version (e.g 10.14.6
) is returned,
On Windows systems, short version (e.g 11
) is returned.
Long OS version coming soon
Usage:
import platforminfo
computer = platforminfo.Platform()
basePlatformValue = computer.kernelVersion()
Examples:
Fedora Linux 38
- output;
38
- output;
Windows 11
- output:
11
- output:
macOS 10.14.6:
- output:
10.14.6
- output: