Mark Harrison Mark Harrison - 11 months ago 74
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?

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

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