def check_vendor():
 if os.path.isfile('/vendor'):
  with open('/vendor', 'r') as f:
   line = f.readline()
  if ('noobs' in line):
   return 'noobs'
  if ('ts' in line):
   return 'ts'
 return None

def check_vendor ( ) : if os . path . isfile ( '/vendor' ) : with open ( '/vendor' , 'r' ) as f : line = f . readline ( ) if ( 'noobs' in line ) : return 'noobs' if ( 'ts' in line ) : return 'ts' return None
checks whether osmc is being installed via n00bs or ts .