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.

37 lines
951 B

  1. import os
  2. __author__ = 'Chris'
  3. base_path = os.path.dirname(__file__)
  4. image_dir = os.path.join(base_path, 'images')
  5. alessandro_rei_checkmark = os.path.join(image_dir, "alessandro_rei_checkmark.png")
  6. computer = os.path.join(image_dir, "computer.png")
  7. computer2 = os.path.join(image_dir, "computer2.png")
  8. computer3 = os.path.join(image_dir, "computer3.png")
  9. icon = os.path.join(image_dir, "icon.ico")
  10. images = os.path.join(image_dir, "images.jpg")
  11. loader = os.path.join(image_dir, "loader.gif")
  12. settings2 = os.path.join(image_dir, "settings2.png")
  13. def _list_images():
  14. # convenience function to list all images
  15. # the images directory in a format that can be copied
  16. # and pasted
  17. images = (f for f in os.listdir(image_dir))
  18. stmnts = ('{0} = os.path.join(image_dir, "{1}")'
  19. .format(os.path.splitext(im)[0], im)
  20. for im in images)
  21. print '\n'.join(stmnts)
  22. _list_images()