diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-08-12 12:03:18 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-08-12 12:03:18 +1000 |
| commit | 02325547f4e82c7fec2404b024a57b3e7efc99f0 (patch) | |
| tree | 5e4ed1a4c9f19e1bf74c2eed0cc2ac5939376047 | |
| parent | 61cb5724e0f18cef7a5693f498cd774f8447adff (diff) | |
colors: Fix cache file name.
| -rw-r--r-- | pywal/colors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/colors.py b/pywal/colors.py index e20c27d..fd233c5 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -84,8 +84,8 @@ def get(img, cache_dir=CACHE_DIR, color_count=COLOR_COUNT, notify=False): """Get the colorscheme.""" # _home_dylan_img_jpg.json - cache_file = os.path.join(cache_dir, "schemes", - img.replace("/", "_"), ".json") + cache_file = img.replace("/", "_").replace(".", "_") + cache_file = os.path.join(cache_dir, "schemes", cache_file + ".json") if os.path.isfile(cache_file): colors = util.read_file_json(cache_file) |
