def list_settings(keys):
 from importlib import import_module
 from evennia.utils import evtable
 evsettings = import_module(SETTINGS_DOTPATH)
 if ((len(keys) == 1) and (keys[0].upper() == 'ALL')):
  table = evtable.EvTable()
  confs = [key for key in sorted(evsettings.__dict__) if key.isupper()]
  for i in range(0, len(confs), 4):
   table.add_row(*confs[i:(i + 4)])
 else:
  table = evtable.EvTable(width=131)
  keys = [key.upper() for key in keys]
  confs = dict(((key, var) for (key, var) in evsettings.__dict__.items() if (key in keys)))
  for (key, val) in confs.items():
   table.add_row(key, str(val))
 print(table)

def list_settings ( keys ) : from importlib import import_module from evennia . utils import evtable evsettings = import_module ( SETTINGS_DOTPATH ) if ( ( len ( keys ) == 1 ) and ( keys [ 0 ] . upper ( ) == 'ALL' ) ) : table = evtable . EvTable ( ) confs = [ key for key in sorted ( evsettings . __dict__ ) if key . isupper ( ) ] for i in range ( 0 , len ( confs ) , 4 ) : table . add_row ( * confs [ i : ( i + 4 ) ] ) else : table = evtable . EvTable ( width = 131 ) keys = [ key . upper ( ) for key in keys ] confs = dict ( ( ( key , var ) for ( key , var ) in evsettings . __dict__ . items ( ) if ( key in keys ) ) ) for ( key , val ) in confs . items ( ) : table . add_row ( key , str ( val ) ) print ( table )
display the server settings .