Commit 0c0d3ed6 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Only create log dir if logging enabled.

parent 5c51529a
...@@ -31,7 +31,7 @@ def launch(cmd, name = 'Unknown', necessary = True, supressOutput = True): ...@@ -31,7 +31,7 @@ def launch(cmd, name = 'Unknown', necessary = True, supressOutput = True):
def main(args, team1='left', team2='right'): def main(args, team1='left', team2='right'):
"""Sets up the teams, launches the server and monitor, starts the trainer. """Sets up the teams, launches the server and monitor, starts the trainer.
""" """
if not os.path.exists(args.logDir): if args.logging and not os.path.exists(args.logDir):
os.makedirs(args.logDir) os.makedirs(args.logDir)
num_agents = args.offenseAgents + args.defenseAgents num_agents = args.offenseAgents + args.defenseAgents
binary_dir = os.path.dirname(os.path.realpath(__file__)) binary_dir = os.path.dirname(os.path.realpath(__file__))
......
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