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.

38 lines
977 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. error = os.path.join(image_dir, "error.png")
  14. def _list_images():
  15. # convenience function to list all images
  16. # the images directory in a format that can be copied
  17. # and pasted
  18. images = (f for f in os.listdir(image_dir))
  19. stmnts = ('{0} = os.path.join(image_dir, "{1}")'
  20. .format(os.path.splitext(im)[0], im)
  21. for im in images)
  22. # _list_images()