From 8d112a921ad912e897d77fa15dc2456c6933673f Mon Sep 17 00:00:00 2001 From: manu Date: Sat, 26 Aug 2017 15:37:07 +0200 Subject: [PATCH] expand user home directory --- shreddit/shredder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shreddit/shredder.py b/shreddit/shredder.py index c4633a0..8398dc7 100644 --- a/shreddit/shredder.py +++ b/shreddit/shredder.py @@ -33,6 +33,7 @@ class Shredder(object): self._recent_cutoff = arrow.now().replace(hours=-self._hours) self._nuke_cutoff = arrow.now().replace(hours=-self._nuke_hours) if self._save_directory: + self._save_directory = os.path.expanduser(self._save_directory) if not os.path.exists(self._save_directory): os.makedirs(self._save_directory)