mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 17:33:09 +01:00
image: Fix bug with relative image paths.
This commit is contained in:
parent
5f4155101b
commit
fea56f35c4
@ -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"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user