def system():
    """ Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.    
        An empty string is returned if the value cannot be determined.   
    """
return uname()[0]
How do I check if I'm running on Windows in Python?