image: Fix bug with relative image paths.

This commit is contained in:
Dylan Araps 2017-08-15 10:32:02 +10:00
parent 5f4155101b
commit fea56f35c4

View File

@ -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"))