Commit 4b63b029 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Changed monitor to start on the same port as the server.

parent 02cb7518
...@@ -62,7 +62,8 @@ def main(args, team1='left', team2='right', rng=numpy.random.RandomState()): ...@@ -62,7 +62,8 @@ def main(args, team1='left', team2='right', rng=numpy.random.RandomState()):
assert server.poll() is None,\ assert server.poll() is None,\
'Failed to launch Server with command: \"%s\"'%(SERVER_CMD) 'Failed to launch Server with command: \"%s\"'%(SERVER_CMD)
if not args.headless: if not args.headless:
launch(MONITOR_CMD, name='monitor') monitorOptions = ' --port=%i'%(server_port)
launch(MONITOR_CMD + monitorOptions, name='monitor')
# Launch the Trainer # Launch the Trainer
from Trainer import Trainer from Trainer import Trainer
trainer = Trainer(args=args, rng=rng) trainer = Trainer(args=args, rng=rng)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment