st-mine/screenshots/genMD.py
2014-11-20 22:10:28 -08:00

8 lines
204 B
Python

import os
with open('README.md', 'w') as mkdn:
mkdn.write("Screenshots\n===\n")
for f in [f for f in os.listdir('.') if os.path.isfile(f)]:
mkdn.write("`%s`" % f)
mkdn.write("![image](%s)\n" % f)