Fix, don't normpath when source is None
notice: os.path.normpath('') => '.'
This commit is contained in:
parent
f38b03a40b
commit
67887e62fe
|
@ -25,8 +25,10 @@ class Link(dotbot.Plugin):
|
||||||
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.expandvars(destination)
|
destination = os.path.expandvars(destination)
|
||||||
destination = os.path.normpath(destination)
|
if destination:
|
||||||
source = os.path.normpath(source)
|
destination = os.path.normpath(destination)
|
||||||
|
if source:
|
||||||
|
source = os.path.normpath(source)
|
||||||
relative = defaults.get('relative', False)
|
relative = defaults.get('relative', False)
|
||||||
force = defaults.get('force', False)
|
force = defaults.get('force', False)
|
||||||
relink = defaults.get('relink', False)
|
relink = defaults.get('relink', False)
|
||||||
|
|
Loading…
Reference in a new issue