blob: c43a4e4ff619db1833d89f881fff9873b8cbdca2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/usr/bin/env python
#-*- coding:utf-8 -*-
import os
f=open("minimap-dyecmd.sh", "w");
CLIENT_DATA_ROOT="../../clientdata"
map_names = sorted([os.path.splitext(p)[0] for p in os.listdir(os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps'))])
f.write('cd '+os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps')+'\n')
for c in map_names:
if os.path.exists(os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps', c+u'.png')):
i=c+u'.png'
f.write("dyecmd %s tmp ; mv tmp %s\n" % (i, i))
f.write("echo \"Converted "+i+" successfully.\"\n")
f.close()
|