From fea56f35c412a8987519bfb9fd7a9f8f31cdaafa Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 15 Aug 2017 10:32:02 +1000 Subject: image: Fix bug with relative image paths. --- pywal/image.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pywal/image.py') diff --git a/pywal/image.py b/pywal/image.py index bb495b1..367191e 100644 --- a/pywal/image.py +++ b/pywal/image.py @@ -38,6 +38,8 @@ def get(img, cache_dir=CACHE_DIR): print("error: No valid image file found.") sys.exit(1) + wal_img = os.path.abspath(wal_img) + # Cache the image file path. util.save_file(wal_img, os.path.join(cache_dir, "wal")) -- cgit v1.2.3