summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authordeviantfero <fmorataya.04@gmail.com>2018-02-04 03:47:33 -0600
committerdeviantfero <fmorataya.04@gmail.com>2018-02-04 03:47:33 -0600
commita5c6f082f271ab5ce7ed9406145fcb82d329eb48 (patch)
tree6d83e2ef00cf00b2224fa47c5fe5418e95a7b136 /pywal
parentb6a5c81d2cf5319d9265546fc7e824a021f14e6e (diff)
color: use __template_version__ instead of pywal's version to create cache_file
Diffstat (limited to 'pywal')
-rw-r--r--pywal/colors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index 3109a34..3093d58 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -7,7 +7,7 @@ import shutil
import subprocess
import sys
-from .settings import CACHE_DIR, COLOR_COUNT, __version__
+from .settings import CACHE_DIR, COLOR_COUNT, __template_version__
from . import util
@@ -106,7 +106,7 @@ def get(img, cache_dir=CACHE_DIR,
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, __version__))
+ % (cache_file, color_type, __template_version__))
if os.path.isfile(cache_file):
colors = file(cache_file)