def collect_images(self):
     """Collect images from _several_ directories."""
     li = []
     for key in cfg.ROTATOR_CHOICE:
         photo_dir = cfg.get_photo_dir_by_key(key)
         li.extend([os.path.join(photo_dir, x) for x in os.listdir(photo_dir) if x.lower().endswith('jpg')])
     self.images = li
 def collect_images(self):
     """Collect images from _several_ directories."""
     li = []
     for key in cfg.ROTATOR_CHOICE:
         photo_dir = cfg.get_photo_dir_by_key(key)
         li.extend([
             os.path.join(photo_dir, x) for x in os.listdir(photo_dir)
             if x.lower().endswith('jpg')
         ])
     self.images = li
def print_info():
    li = [cfg.get_photo_dir_by_key(key) for key in cfg.ROTATOR_CHOICE]

    print "# Jabba's Wallpaper Rotator for Gnome v0.2"
    print "#", li
    print "# initial duration: {0} sec.".format(cfg.DURATION)
def print_info():
    li = [cfg.get_photo_dir_by_key(key) for key in cfg.ROTATOR_CHOICE]

    print "# Jabba's Wallpaper Rotator for Gnome v0.2"
    print "#", li
    print "# initial duration: {0} sec.".format(cfg.DURATION)