mirror of
1
0
Fork 0

Add expanduser

This commit is contained in:
Jonas De 2019-08-16 08:13:00 +02:00
parent 457b38326c
commit b3468af3b3
1 changed files with 2 additions and 0 deletions

View File

@ -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