From ea2181ec5f71dc576fc3689eaf37e08c79d859e1 Mon Sep 17 00:00:00 2001 From: deviantfero Date: Sun, 4 Feb 2018 03:54:06 -0600 Subject: [PATCH] general: change template_version for more appropriate name cache_version --- pywal/__init__.py | 4 ++-- pywal/__main__.py | 2 +- pywal/colors.py | 4 ++-- pywal/settings.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pywal/__init__.py b/pywal/__init__.py index bd25c3f..67ec55f 100644 --- a/pywal/__init__.py +++ b/pywal/__init__.py @@ -9,7 +9,7 @@ Created by Dylan Araps. """ -from .settings import __version__, __template_version__ +from .settings import __version__, __chache_version__ from . import colors from . import export from . import image @@ -19,7 +19,7 @@ from . import wallpaper __all__ = [ "__version__", - "__template_version__" + "__chache_version__" "colors", "export", "image", diff --git a/pywal/__main__.py b/pywal/__main__.py index 74a9836..69fa70d 100644 --- a/pywal/__main__.py +++ b/pywal/__main__.py @@ -15,7 +15,7 @@ import shutil import sys from .settings import __version__, CACHE_DIR -from .settings import __template_version__ +from .settings import __chache_version__ from . import colors from . import export from . import image diff --git a/pywal/colors.py b/pywal/colors.py index 3093d58..4d481c5 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, __template_version__ +from .settings import CACHE_DIR, COLOR_COUNT, __chache_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, __template_version__)) + % (cache_file, color_type, __chache_version__)) if os.path.isfile(cache_file): colors = file(cache_file) diff --git a/pywal/settings.py b/pywal/settings.py index dfe0b98..fa42a5f 100644 --- a/pywal/settings.py +++ b/pywal/settings.py @@ -14,7 +14,7 @@ import platform __version__ = "1.3.1" -__template_version__ = "1.0.0" +__chache_version__ = "1.0.0" HOME = os.getenv("HOME", os.getenv("USERPROFILE"))