Skip to content

Instantly share code, notes, and snippets.

@dotcomboom
Last active July 25, 2018 23:03
Show Gist options
  • Save dotcomboom/524bb217b0bfd0744bd60880f50edaf4 to your computer and use it in GitHub Desktop.
Save dotcomboom/524bb217b0bfd0744bd60880f50edaf4 to your computer and use it in GitHub Desktop.
Generate IMG tags for every file in a folder
import os
for filename in os.listdir(input('Path: ')):
print('<img src="' + filename + '" />')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment