1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 14:58:48 +00:00

enable relative path when update dotfiles.

This commit is contained in:
raochsinai
2018-12-12 04:07:14 +08:00
parent 875e028a4d
commit 7b9c0b6378

View File

@@ -94,6 +94,7 @@ class Updater:
"""normalize the path to match dotfile"""
path = os.path.expanduser(path)
path = os.path.expandvars(path)
path = os.path.abspath(path)
# normalize the path
if path.startswith(self.home):