python platform


```typeimport platformos = platform.system()if os == 'Windows':```



> [Python: What OS am I running on?](https://stackoverflow.com/questions/1854/python-what-os-am-i-running-on/45679447)








