Python fine-grained OS detection of WSL, Cygwin, etc.

Fine-grained OS Detection from Python script: windows_linux_detect.py

This standalone Python script detects if running on Windows Subsystem for Linux, Cygwin, Linux, Mac, BSD, Windows, etc. using Boolean properties.

The Boolean properties returned are:

self.cygwin
self.wsl
self.linux

self.windows

self.mac

self.bsd

Categories:

Updated:

Leave a Comment