Skip to content

Commit

Permalink
MIN Use macrel for the cache directory
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Jun 28, 2024
1 parent 92cb979 commit ea687ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macrel/ampsphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def get_cache_directory(args):
cache_dir = args.cache_dir
else:
if 'XDG_CACHE_HOME' in environ:
cache_dir = path.join(environ['XDG_CACHE_HOME'], 'ampsphere')
cache_dir = path.join(environ['XDG_CACHE_HOME'], 'macrel')
else:
cache_dir = path.join(path.expanduser("~"), '.cache', 'ampsphere')
cache_dir = path.join(path.expanduser("~"), '.cache', 'macrel')
if not path.exists(cache_dir):
from os import makedirs
makedirs(cache_dir, exist_ok=True)
Expand Down

0 comments on commit ea687ee

Please sign in to comment.