From 9b0995552bdba2fd74f64ec15673c049c6522958 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 5 Feb 2015 09:27:27 +0100 Subject: [PATCH] wallpaper: don't append root path twice This works with absolute directories but not with relative ones. --- bin/build-wallpaper | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/build-wallpaper b/bin/build-wallpaper index 440863e..a4f65ec 100755 --- a/bin/build-wallpaper +++ b/bin/build-wallpaper @@ -56,8 +56,7 @@ for root, _, files in os.walk(os.path.join(options.directory)): '.png'): images.append(os.path.join(root, i)) images = random.sample(images, len(screens)) -images = [Image.open(os.path.join(options.directory, - image)) for image in images] +images = [Image.open(image) for image in images] print "wallpaper: %s" % " + ".join(["`%s`" % x.filename[(len(options.directory) + 1):] for x in images])