How to check if system is Windows or Linux using Python
check_platform.py
def is_platform_windows():
return platform.system() == "Windows"
def is_platform_linux():
return platform.system() == "Linux"
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow