diff --git a/pywal/colors.py b/pywal/colors.py index f6f77bf..b5ec418 100644 --- a/pywal/colors.py +++ b/pywal/colors.py @@ -89,7 +89,7 @@ def get(img, cache_dir=CACHE_DIR, color_count=COLOR_COUNT, notify=False): """Get the colorscheme.""" # _home_dylan_img_jpg.json - cache_file = img.replace("/", "_").replace(".", "_") + cache_file = img.replace("/", "_").replace("\\", "_").replace(".", "_") cache_file = os.path.join(cache_dir, "schemes", cache_file + ".json") if os.path.isfile(cache_file): diff --git a/pywal/settings.py b/pywal/settings.py index b4ad3a5..4aec9a7 100644 --- a/pywal/settings.py +++ b/pywal/settings.py @@ -17,7 +17,7 @@ __version__ = "0.6.6" HOME = os.getenv("HOME", os.getenv("USERPROFILE")) -CACHE_DIR = os.path.join(HOME, ".cache/wal/") +CACHE_DIR = os.path.join(HOME, ".cache", "wal") MODULE_DIR = os.path.dirname(__file__) COLOR_COUNT = 16 OS = platform.uname()[0]