mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-01 16:54:25 +02:00
wallpaper: don't append root path twice
This works with absolute directories but not with relative ones.
This commit is contained in:
parent
b205223f63
commit
9b0995552b
1 changed files with 1 additions and 2 deletions
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue