From b1b43a6f826adc9bb92716f537f8645a8fab3353 Mon Sep 17 00:00:00 2001 From: James Parkhurst Date: Mon, 21 Jul 2025 13:52:28 +0100 Subject: [PATCH] Do expand user on input cache dir --- profet/cache.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") ) )