summaryrefslogtreecommitdiff
path: root/pywal/image.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-23 12:03:23 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-23 12:03:23 +1000
commita0c130cbdaad332473d8c7ef573059e46fa189f9 (patch)
tree507df773c45dd585bd708112cf1926a2fe2b5073 /pywal/image.py
parentd8376eecc90b659f7b087ddd2ec0f29200ae6141 (diff)
tests: Fix tests
Diffstat (limited to 'pywal/image.py')
-rw-r--r--pywal/image.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/image.py b/pywal/image.py
index 3f28923..eec05f6 100644
--- a/pywal/image.py
+++ b/pywal/image.py
@@ -10,7 +10,7 @@ from . import util
from . import wallpaper
-def get_random_image(img_dir, cache_dir):
+def get_random_image(img_dir):
"""Pick a random image file from a directory."""
current_wall = wallpaper.get()
current_wall = os.path.basename(current_wall[0])
@@ -34,7 +34,7 @@ def get(img, cache_dir=__cache_dir__):
wal_img = str(image)
elif image.is_dir():
- wal_img = get_random_image(image, cache_dir)
+ wal_img = get_random_image(image)
else:
print("error: No valid image file found.")