mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-12 15:47:01 +02:00
image: Fix bug with relative image paths.
This commit is contained in:
@ -38,6 +38,8 @@ def get(img, cache_dir=CACHE_DIR):
|
|||||||
print("error: No valid image file found.")
|
print("error: No valid image file found.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
wal_img = os.path.abspath(wal_img)
|
||||||
|
|
||||||
# Cache the image file path.
|
# Cache the image file path.
|
||||||
util.save_file(wal_img, os.path.join(cache_dir, "wal"))
|
util.save_file(wal_img, os.path.join(cache_dir, "wal"))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user