Mark Harrison Mark Harrison - 1 year ago 128
Python Question

How to check what OS am I running on in Python?

What do I need to look at to see if I'm on Windows, Unix, etc?

Answer Source
>>> import os
>>> print
>>> import platform
>>> platform.system()
>>> platform.release()

See: platform — Access to underlying platform’s identifying data

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download