kernelVersion()
Description:
Determines kernel version.
On Linux, full kernel version (e.g 6.4.10-200.fc38.x86_64
) is returned.
On Mac systems. darwin version (e.g 18.7.0
for macOS 10.14.6) is returned.
On Windows systems, long NT version (e.g 10.0.22000.2295
) is returned.
Usage:
import platforminfo
computer = platforminfo.Platform()
basePlatformValue = computer.kernelVersion()
Examples:
Fedora Linux 38
- output;
6.4.10-200.fc38.x86_64
- output;
Windows 11
- output:
10.0.22000.2295
- output:
macOS 10.14.6:
- output:
18.7.0
- output: