From 30af3d0d5c9b8c5e712b571ec605102895f2e06b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 4 Jan 2019 21:40:16 +0200 Subject: [PATCH] settings: Added ENVAR PYWAL_CACHE_DIR to change cache dir. Closes #343 --- pywal/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywal/settings.py b/pywal/settings.py index 18c6dd6..2a862bf 100644 --- a/pywal/settings.py +++ b/pywal/settings.py @@ -18,7 +18,7 @@ __cache_version__ = "1.1.0" HOME = os.getenv("HOME", os.getenv("USERPROFILE")) -CACHE_DIR = os.path.join(HOME, ".cache", "wal") +CACHE_DIR = os.getenv("PYWAL_CACHE_DIR", os.path.join(HOME, ".cache", "wal")) MODULE_DIR = os.path.dirname(__file__) CONF_DIR = os.path.join(HOME, ".config", "wal") OS = platform.uname()[0]