st-mine/screenshots/genMD.py

9 lines
204 B
Python
Raw Normal View History

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)