Fix favicon generator script.

This commit fixes the path for generated favicons.
This commit is contained in:
akashnimare 2018-01-30 20:37:25 +05:30 committed by Tim Abbott
parent 57d2d3ada5
commit 8e268b5a7b
1 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@ for i in range(1, 100):
s = '%2d' % (i,)
for e in elems:
e.text = s
with open('tmp.svg', 'w') as out:
with open('tmp.svg', 'wb') as out:
tree.write(out)
# Convert to PNG
subprocess.check_call(['inkscape', '--without-gui', '--export-area-page',
'--export-png=../../static/images/favicon/favicon-%d.png' % (i,),
'--export-png=../../../static/images/favicon/favicon-%d.png' % (i,),
'tmp.svg'])