From b3468af3b3742666567ec0035b2ab5f6758dfa8f Mon Sep 17 00:00:00 2001 From: Jonas De Date: Fri, 16 Aug 2019 08:13:00 +0200 Subject: [PATCH] Add expanduser --- dotbot/plugins/link.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py index 7e5d6d9..cdab143 100644 --- a/dotbot/plugins/link.py +++ b/dotbot/plugins/link.py @@ -159,6 +159,8 @@ class Link(dotbot.Plugin): success = True source = os.path.join(self._context.base_directory(), source) fullpath = os.path.expanduser(path) + if backup: + backup = os.path.expanduser(backup) if relative: source = self._relative_path(source, fullpath) if ((self._is_link(path) and self._link_destination(path) != source) or