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

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
human-friendly os name .