diff --git a/profet/cache.py b/profet/cache.py index 52d39b9..c043769 100644 --- a/profet/cache.py +++ b/profet/cache.py @@ -21,10 +21,10 @@ def __init__(self, directory: str = None): # Set the cache directory self.directory = os.path.abspath( - directory - if directory is not None - else os.path.abspath( - os.path.expanduser(os.path.join("~", ".cache", "pdb")) + os.path.expanduser( + directory + if directory is not None + else os.path.join("~", ".cache", "pdb") ) )