Normalize path
This avoding mixed slashes in Linking status log
This commit is contained in:
parent
e41afad03c
commit
0ecf45d34b
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ class Link(dotbot.Plugin):
|
||||||
success = True
|
success = True
|
||||||
defaults = self._context.defaults().get('link', {})
|
defaults = self._context.defaults().get('link', {})
|
||||||
for destination, source in links.items():
|
for destination, source in links.items():
|
||||||
|
destination = os.path.normpath(destination)
|
||||||
|
source = os.path.normpath(source)
|
||||||
destination = os.path.expandvars(destination)
|
destination = os.path.expandvars(destination)
|
||||||
relative = defaults.get('relative', False)
|
relative = defaults.get('relative', False)
|
||||||
force = defaults.get('force', False)
|
force = defaults.get('force', False)
|
||||||
|
|
Loading…
Reference in a new issue