def check_dist():
 import platform
 try:
  return platform.linux_distribution()[0].lower().strip()
 except AttributeError:
  return platform.dist()[0].lower().strip()

def check_dist ( ) : import platform try : return platform . linux_distribution ( ) [ 0 ] . lower ( ) . strip ( ) except AttributeError : return platform . dist ( ) [ 0 ] . lower ( ) . strip ( )
determines what distro were running under .