goalie.is_unix

goalie.is_unix() bool

Check whether the OS is Unix-based (Linux or macOS).

Returns:

True if os.name is "posix".

Return type:

bool

Examples

>>> isinstance(is_unix(), bool)
True