summaryrefslogtreecommitdiff
path: root/pywal/colors.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-03-31 09:42:32 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-03-31 09:42:32 +1100
commit6430724400e698c6971bf605216cbf4a4d203a12 (patch)
tree16c02b6a13541a3f930697620b868803448a050b /pywal/colors.py
parent7d4eb6b075f1a6f080602ca4fadee7d6faf15678 (diff)
backend: Add colorthief.py
Diffstat (limited to 'pywal/colors.py')
-rw-r--r--pywal/colors.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index 6123690..8e75a6d 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -24,8 +24,9 @@ def generate(img, cache_dir=CACHE_DIR,
# home_dylan_img_jpg_1.2.2.json
color_type = "light" if light else "dark"
cache_file = re.sub("[/|\\|.]", "_", img)
- cache_file = os.path.join(cache_dir, "schemes", "%s_%s_%s.json"
- % (cache_file, color_type, __cache_version__))
+ cache_file = os.path.join(cache_dir, "schemes", "%s_%s_%s_%s.json"
+ % (cache_file, color_type,
+ backend, __cache_version__))
if os.path.isfile(cache_file):
colors = file(cache_file)