diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-08-15 10:32:02 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-08-15 10:32:02 +1000 |
| commit | fea56f35c412a8987519bfb9fd7a9f8f31cdaafa (patch) | |
| tree | cce0dd39e542a4e8ca21bf698cb0035865d9404f | |
| parent | 5f4155101be59ead81860f07d9a83a4f9892cec6 (diff) | |
image: Fix bug with relative image paths.
| -rw-r--r-- | pywal/image.py | 2 |
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")) |
