1
0
Fork 0
mirror of synced 2024-06-15 13:51:08 -04:00

Add expanduser

This commit is contained in:
Jonas De 2019-08-16 08:13:00 +02:00
parent 457b38326c
commit b3468af3b3

View file

@ -159,6 +159,8 @@ class Link(dotbot.Plugin):
success = True success = True
source = os.path.join(self._context.base_directory(), source) source = os.path.join(self._context.base_directory(), source)
fullpath = os.path.expanduser(path) fullpath = os.path.expanduser(path)
if backup:
backup = os.path.expanduser(backup)
if relative: if relative:
source = self._relative_path(source, fullpath) source = self._relative_path(source, fullpath)
if ((self._is_link(path) and self._link_destination(path) != source) or if ((self._is_link(path) and self._link_destination(path) != source) or