summaryrefslogtreecommitdiff
path: root/pywal/image.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-15 10:32:02 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-15 10:32:02 +1000
commitfea56f35c412a8987519bfb9fd7a9f8f31cdaafa (patch)
treecce0dd39e542a4e8ca21bf698cb0035865d9404f /pywal/image.py
parent5f4155101be59ead81860f07d9a83a4f9892cec6 (diff)
image: Fix bug with relative image paths.
Diffstat (limited to 'pywal/image.py')
-rw-r--r--pywal/image.py2
1 files changed, 2 insertions, 0 deletions
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"))