Add expanduser
This commit is contained in:
parent
457b38326c
commit
b3468af3b3
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue