mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-20 16:20:53 +02:00
colors: Fix cache file name.
This commit is contained in:
parent
61cb5724e0
commit
02325547f4
@ -84,8 +84,8 @@ def get(img, cache_dir=CACHE_DIR,
|
|||||||
color_count=COLOR_COUNT, notify=False):
|
color_count=COLOR_COUNT, notify=False):
|
||||||
"""Get the colorscheme."""
|
"""Get the colorscheme."""
|
||||||
# _home_dylan_img_jpg.json
|
# _home_dylan_img_jpg.json
|
||||||
cache_file = os.path.join(cache_dir, "schemes",
|
cache_file = img.replace("/", "_").replace(".", "_")
|
||||||
img.replace("/", "_"), ".json")
|
cache_file = os.path.join(cache_dir, "schemes", cache_file + ".json")
|
||||||
|
|
||||||
if os.path.isfile(cache_file):
|
if os.path.isfile(cache_file):
|
||||||
colors = util.read_file_json(cache_file)
|
colors = util.read_file_json(cache_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user