in support/retro_contest/docker.py [0:0]
def run_args(args):
kwargs = {
'entry_args': args.args,
'wallclock_limit': args.wallclock_limit,
'timestep_limit': args.timestep_limit,
'discrete_actions': args.discrete_actions,
'resultsdir': args.results_dir,
'agentdir': args.agent_dir,
'quiet': args.quiet,
'use_host_data': args.use_host_data,
'agent_shm': args.agent_shm,
}
if args.no_nv:
kwargs['runtime'] = None
if args.agent:
kwargs['agent'] = args.agent
if args.remote_env:
kwargs['remote_env'] = args.remote_env
results = run(args.game, args.state, args.entry, **kwargs)
if results['remote'][0] or results['agent'][0]:
if results['remote'][0]:
print('Remote exited uncleanly:', results['remote'][0])
if results['agent'][0]:
print('Agent exited uncleanly', results['agent'][0])
return False
return True