mirror of https://github.com/dirtbags/moth.git
Fix path for tank submission
This commit is contained in:
parent
f3dafa5271
commit
e6a118f709
|
@ -29,7 +29,7 @@ if not teams.chkpasswd(team, passwd):
|
||||||
elif not code:
|
elif not code:
|
||||||
body = '<p>No program given.</p>'
|
body = '<p>No program given.</p>'
|
||||||
else:
|
else:
|
||||||
path = os.path.join(basedir, 'ai/players', quote(team, safe=''))
|
path = os.path.join(basedir, 'players', quote(team, safe=''))
|
||||||
file = open(path, 'w')
|
file = open(path, 'w')
|
||||||
file.write('Team: %s\n' % quote(team))
|
file.write('Team: %s\n' % quote(team))
|
||||||
file.write('Color: #%s\n' % teams.color(team))
|
file.write('Color: #%s\n' % teams.color(team))
|
||||||
|
|
Loading…
Reference in New Issue