From 95113f1927f725d8bec676e26a3ba5fc0082db02 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 16 Jul 2012 15:05:10 +0200 Subject: [PATCH] wallpaper: log the files used to build the wallpaper --- bin/build-wallpaper | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/build-wallpaper b/bin/build-wallpaper index aad2c08..57e4391 100755 --- a/bin/build-wallpaper +++ b/bin/build-wallpaper @@ -60,6 +60,7 @@ for root, _, files in os.walk(os.path.join(options.directory)): images = random.sample(images, len(screens) + \ random.randint(0, 3)) # Randomly favor larger images +print "Build new wallpaper with %s" % " + ".join(["`%s`" % x[(len(options.directory) + 1):] for x in images]) images = [Image.open(os.path.join(options.directory, image)) for image in images] images.sort(key=lambda image: -image.size[0]*image.size[1])