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

Fine-grained OS Detection from Python script

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

Leave a Comment