nicetoolbox.utils.system¶
Helper functions for system-related operations.
Functions
Check if Windows long path support is enabled and warn if not. |
|
Detects the underlying operating system. |
|
Checks current system-specific capabilities (i.e. |
- nicetoolbox.utils.system.check_long_path_support() None[source]¶
Check if Windows long path support is enabled and warn if not.
On Windows, the default MAX_PATH limit is 260 characters. This can cause failures when dataset/session names produce long folder paths. Enabling long path support removes this limit.
On Linux, this check is a no-op (no 260-char restriction).
- 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’.