From f795f200aa9ef1dfe5b9d21f8d3d01e593ef996f Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 23 Oct 2018 08:05:44 +0200 Subject: [PATCH] fix update directory for #63 --- dotdrop/updater.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotdrop/updater.py b/dotdrop/updater.py index 5f25a84..a3946a8 100644 --- a/dotdrop/updater.py +++ b/dotdrop/updater.py @@ -39,6 +39,7 @@ class Updater: dotfile = self._get_dotfile_by_path(path, profile) if not dotfile: return False + path = os.path.expanduser(path) if self.debug: self.log.dbg('updating {} from path \"{}\"'.format(dotfile, path)) return self._update(path, dotfile) @@ -110,6 +111,8 @@ class Updater: if self.debug: self.log.dbg('update for file {} and {}'.format(left, right)) if self._is_template(right): + if self.debug: + self.log.dbg('{} is a template'.format(right)) return False if compare and filecmp.cmp(left, right, shallow=True): # no difference