website for lusty lavender: http://eln.ja13.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

versions.py 337B

12345678910111213
  1. #!/usr/bin/env python3
  2. import sys, os
  3. if len(sys.argv) < 2:
  4. print(f'usage: {sys.argv[0]} dir', file=sys.stderr)
  5. exit()
  6. print('<ul class="versions">')
  7. for fname in sorted(os.listdir(sys.argv[1])):
  8. if fname.startswith('.'):
  9. continue
  10. print(f'\t<li><a href="{sys.argv[1]}/{fname}">{fname}</a></li>')
  11. print('</ul>')