From 0ecf45d34b4991bb23894531316684278b1ec5c7 Mon Sep 17 00:00:00 2001 From: SuJiKiNen Date: Sun, 3 Mar 2019 21:49:04 +0800 Subject: [PATCH] Normalize path This avoding mixed slashes in Linking status log --- dotbot/plugins/link.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py index 2506237..8c550d5 100644 --- a/dotbot/plugins/link.py +++ b/dotbot/plugins/link.py @@ -24,6 +24,8 @@ class Link(dotbot.Plugin): success = True defaults = self._context.defaults().get('link', {}) for destination, source in links.items(): + destination = os.path.normpath(destination) + source = os.path.normpath(source) destination = os.path.expandvars(destination) relative = defaults.get('relative', False) force = defaults.get('force', False)