aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <[email protected]>2019-01-04 21:40:16 +0200
committerDylan Araps <[email protected]>2019-01-04 21:40:16 +0200
commit30af3d0d5c9b8c5e712b571ec605102895f2e06b (patch)
treee761c5e34d08fb119ccbdb5e77657ebcba679938
parentMerge pull request #354 from sraysmith/master (diff)
downloadpywal-30af3d0d5c9b8c5e712b571ec605102895f2e06b.tar.xz
pywal-30af3d0d5c9b8c5e712b571ec605102895f2e06b.zip
settings: Added ENVAR PYWAL_CACHE_DIR to change cache dir. Closes #343
-rw-r--r--pywal/settings.py2
1 files changed, 1 insertions, 1 deletions
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]