aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-09-01 14:22:07 -0400
committerB. Stack <bgstack15@gmail.com>2022-09-01 14:22:07 -0400
commitd592392a93cc7fd724a07706dab8573b668f62ba (patch)
tree7b87bcb36766344df86f70d1748c1971aa812c9e
parentclean up old files (diff)
downloadcoupons-d592392a93cc7fd724a07706dab8573b668f62ba.tar.gz
coupons-d592392a93cc7fd724a07706dab8573b668f62ba.tar.bz2
coupons-d592392a93cc7fd724a07706dab8573b668f62ba.zip
use XDG_CACHE_HOME correctly
-rwxr-xr-xcoupons.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coupons.py b/coupons.py
index 061f998..1e4b964 100755
--- a/coupons.py
+++ b/coupons.py
@@ -69,7 +69,7 @@ def get_cached_name(store, date = None):
"""
USE_CACHE = True
store = store.lower()
- cache_dir = os.environ.get("XDG_CACHE_DIR") # defauls to ~/.cache
+ cache_dir = os.environ.get("XDG_CACHE_HOME") # defaults to ~/.cache
if "" == cache_dir or cache_dir is None:
cache_dir = os.path.join(os.environ.get("HOME"),".cache")
# use an app-specific dir underneath it
bgstack15