mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-29 03:13:47 +01:00
color: use __template_version__ instead of pywal's version to create cache_file
This commit is contained in:
parent
b6a5c81d2c
commit
a5c6f082f2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user