def load_plugins(dirs):
 dirs = [os.path.expanduser(d) for d in dirs]
 for directory in dirs:
  if os.path.isdir(directory):
   livestreamer.load_plugins(directory)
  else:
   console.logger.warning('Plugin path {0} does not exist or is not a directory!', directory)

def load_plugins ( dirs ) : dirs = [ os . path . expanduser ( d ) for d in dirs ] for directory in dirs : if os . path . isdir ( directory ) : livestreamer . load_plugins ( directory ) else : console . logger . warning ( 'Plugin path {0} does not exist or is not a directory!' , directory )
load plugins from the standard plugin paths .