1
0
Fork 0
mirror of synced 2024-06-03 07:51:09 -04:00

Fix, don't normpath when source is None

notice: os.path.normpath('') => '.'
This commit is contained in:
SuJiKiNen 2019-03-05 21:50:36 +08:00
parent f38b03a40b
commit 67887e62fe

View file

@ -25,7 +25,9 @@ class Link(dotbot.Plugin):
defaults = self._context.defaults().get('link', {})
for destination, source in links.items():
destination = os.path.expandvars(destination)
if destination:
destination = os.path.normpath(destination)
if source:
source = os.path.normpath(source)
relative = defaults.get('relative', False)
force = defaults.get('force', False)