()
Human-friendly OS name
Human-friendly OS name
Human - friendly OS name
def get_os():
    """
    Human-friendly OS name
    """
    if sys.platform == 'darwin':
        return 'mac'
    elif sys.platform.find('freebsd') != -1:
        return 'freebsd'
    elif sys.platform.find('linux') != -1:
        return 'linux'
    elif sys.platform.find('win32') != -1:
        return 'windows'
    elif sys.platform.find('sunos') != -1:
        return 'solaris'
    else:
        return sys.platform
def get_os ( ) : if sys . platform == 'darwin' : return 'mac' elif sys . platform . find ( 'freebsd' ) != - 1 : return 'freebsd' elif sys . platform . find ( 'linux' ) != - 1 : return 'linux' elif sys . platform . find ( 'win32' ) != - 1 : return 'windows' elif sys . platform . find ( 'sunos' ) != - 1 : return 'solaris' else : return sys . platform