diff options
author | B. Stack <bgstack15@gmail.com> | 2022-09-01 14:22:07 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-09-01 14:22:07 -0400 |
commit | d592392a93cc7fd724a07706dab8573b668f62ba (patch) | |
tree | 7b87bcb36766344df86f70d1748c1971aa812c9e /coupons.py | |
parent | clean up old files (diff) | |
download | coupons-d592392a93cc7fd724a07706dab8573b668f62ba.tar.gz coupons-d592392a93cc7fd724a07706dab8573b668f62ba.tar.bz2 coupons-d592392a93cc7fd724a07706dab8573b668f62ba.zip |
use XDG_CACHE_HOME correctly
Diffstat (limited to 'coupons.py')
-rwxr-xr-x | coupons.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |