platform-detection

Reliably detect Windows in Python

Reliably detect Windows in Python Question: I’m working on a couple of Linux tools and need to prevent installation on Windows, since it depends on FHS and is thus rendered useless on that platform. The platform.platform function comes close but only returns a string. Unfortunately I don’t know what to search for in that string …

Total answers: 6