mirror of https://github.com/zulip/zulip.git
Fix favicon generator script.
This commit fixes the path for generated favicons.
This commit is contained in:
parent
57d2d3ada5
commit
8e268b5a7b
|
@ -15,10 +15,10 @@ for i in range(1, 100):
|
||||||
s = '%2d' % (i,)
|
s = '%2d' % (i,)
|
||||||
for e in elems:
|
for e in elems:
|
||||||
e.text = s
|
e.text = s
|
||||||
with open('tmp.svg', 'w') as out:
|
with open('tmp.svg', 'wb') as out:
|
||||||
tree.write(out)
|
tree.write(out)
|
||||||
|
|
||||||
# Convert to PNG
|
# Convert to PNG
|
||||||
subprocess.check_call(['inkscape', '--without-gui', '--export-area-page',
|
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'])
|
'tmp.svg'])
|
||||||
|
|
Loading…
Reference in New Issue