mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-01 13:25:46 -04:00
gen_gallery.py: quick hack to generate HTML gallery of patches
This commit is contained in:
parent
48265abede
commit
e9335e30d6
1 changed files with 15 additions and 0 deletions
15
tools/gen_gallery.py
Normal file
15
tools/gen_gallery.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/python
|
||||
import os,sys,re
|
||||
|
||||
# this sucks
|
||||
|
||||
patches = [ x for x in os.listdir('.') if re.match(r'.*\.gif$', x) ]
|
||||
|
||||
print '''<style type="text/css">
|
||||
div {
|
||||
float: left;
|
||||
width: 20%;
|
||||
}
|
||||
</style>
|
||||
'''
|
||||
print ''.join(['<div><img src="%s" /><br />%s</div>' % (x,x) for x in patches])
|
Loading…
Add table
Add a link
Reference in a new issue