def run_dummyrunner(number_of_dummies):
 number_of_dummies = (str(int(number_of_dummies)) if number_of_dummies else 1)
 cmdstr = [sys.executable, EVENNIA_DUMMYRUNNER, '-N', number_of_dummies]
 config_file = os.path.join(SETTINGS_PATH, 'dummyrunner_settings.py')
 if os.path.exists(config_file):
  cmdstr.extend(['--config', config_file])
 try:
  call(cmdstr, env=getenv())
 except KeyboardInterrupt:
  pass

def run_dummyrunner ( number_of_dummies ) : number_of_dummies = ( str ( int ( number_of_dummies ) ) if number_of_dummies else 1 ) cmdstr = [ sys . executable , EVENNIA_DUMMYRUNNER , '-N' , number_of_dummies ] config_file = os . path . join ( SETTINGS_PATH , 'dummyrunner_settings.py' ) if os . path . exists ( config_file ) : cmdstr . extend ( [ '--config' , config_file ] ) try : call ( cmdstr , env = getenv ( ) ) except KeyboardInterrupt : pass
start an instance of the dummyrunner args: number_of_dummies : the number of dummy players to start .