diff options
| author | Dylan Araps <dylanaraps@users.noreply.github.com> | 2018-02-05 08:44:06 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-05 08:44:06 +1100 |
| commit | 59b42221c14e9e574c06beb1e8f0362f74092110 (patch) | |
| tree | f4fde675fd67043c2bdadfc649dbba3fa710aea0 /pywal/colors.py | |
| parent | 140c6bab1fb3e141534c2cacbb7b80be99bc25f8 (diff) | |
| parent | 25b802747d5bc68bccf27adf70ce2e190838f706 (diff) | |
Merge pull request #177 from deviantfero/master
Use separate versioning for cache files and pywal.
Diffstat (limited to 'pywal/colors.py')
| -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 8688770..0fed29e 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, __cache_version__ from . import util @@ -107,7 +107,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, __cache_version__)) if os.path.isfile(cache_file): colors = file(cache_file) |
