general: change template_version for more appropriate name cache_version

This commit is contained in:
deviantfero 2018-02-04 03:54:06 -06:00
parent 5358053ee8
commit ea2181ec5f
4 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@
Created by Dylan Araps. Created by Dylan Araps.
""" """
from .settings import __version__, __template_version__ from .settings import __version__, __chache_version__
from . import colors from . import colors
from . import export from . import export
from . import image from . import image
@ -19,7 +19,7 @@ from . import wallpaper
__all__ = [ __all__ = [
"__version__", "__version__",
"__template_version__" "__chache_version__"
"colors", "colors",
"export", "export",
"image", "image",

View File

@ -15,7 +15,7 @@ import shutil
import sys import sys
from .settings import __version__, CACHE_DIR from .settings import __version__, CACHE_DIR
from .settings import __template_version__ from .settings import __chache_version__
from . import colors from . import colors
from . import export from . import export
from . import image from . import image

View File

@ -7,7 +7,7 @@ import shutil
import subprocess import subprocess
import sys import sys
from .settings import CACHE_DIR, COLOR_COUNT, __template_version__ from .settings import CACHE_DIR, COLOR_COUNT, __chache_version__
from . import util from . import util
@ -106,7 +106,7 @@ def get(img, cache_dir=CACHE_DIR,
color_type = "light" if light else "dark" color_type = "light" if light else "dark"
cache_file = re.sub("[/|\\|.]", "_", img) cache_file = re.sub("[/|\\|.]", "_", img)
cache_file = os.path.join(cache_dir, "schemes", "%s_%s_%s.json" 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): if os.path.isfile(cache_file):
colors = file(cache_file) colors = file(cache_file)

View File

@ -14,7 +14,7 @@ import platform
__version__ = "1.3.1" __version__ = "1.3.1"
__template_version__ = "1.0.0" __chache_version__ = "1.0.0"
HOME = os.getenv("HOME", os.getenv("USERPROFILE")) HOME = os.getenv("HOME", os.getenv("USERPROFILE"))