aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2017-08-15 10:32:02 +1000
committerDylan Araps <[email protected]>2017-08-15 10:32:02 +1000
commitfea56f35c412a8987519bfb9fd7a9f8f31cdaafa (patch)
treecce0dd39e542a4e8ca21bf698cb0035865d9404f
parentdocs: README (diff)
downloadpywal-fea56f35c412a8987519bfb9fd7a9f8f31cdaafa.tar.xz
pywal-fea56f35c412a8987519bfb9fd7a9f8f31cdaafa.zip
image: Fix bug with relative image paths.
-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"))