def start_client(config, args):
 logger.info('Start client mode')
 global client
 from glances.client import GlancesClient
 client = GlancesClient(config=config, args=args)
 if (not client.login()):
  logger.critical('The server version is not compatible with the client')
  sys.exit(2)
 client.serve_forever()
 client.end()

def start_client ( config , args ) : logger . info ( 'Start client mode' ) global client from glances . client import GlancesClient client = GlancesClient ( config = config , args = args ) if ( not client . login ( ) ) : logger . critical ( 'The server version is not compatible with the client' ) sys . exit ( 2 ) client . serve_forever ( ) client . end ( )
start the client mode .