wallpaper: don't append root path twice

This works with absolute directories but not with relative ones.
This commit is contained in:
Vincent Bernat 2015-02-05 09:27:27 +01:00
parent b205223f63
commit 9b0995552b

View file

@ -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])