nicetoolbox.utils.system.detect_os_type¶
- nicetoolbox.utils.system.detect_os_type() str[source]¶
Detects the underlying operating system.
- Returns:
- A string representing the operating system type.
It can be either ‘windows’ or ‘linux’.
- Return type:
str
Notes
This function uses the platform module to determine the operating system. It checks the platform.system() function’s return value and returns ‘windows’ if it’s ‘Windows’, and ‘linux’ if it’s either ‘Linux’ or ‘Darwin’.