1
0
Fork 0
mirror of synced 2024-06-26 02:41:10 -04:00

Normalize path

This avoding mixed slashes in Linking status log
This commit is contained in:
SuJiKiNen 2019-03-03 21:49:04 +08:00
parent e41afad03c
commit 0ecf45d34b

View file

@ -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)