From fd7f3b85514b3aca17afda51ff0ee22937388451 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Tue, 12 May 2015 20:04:42 -0400 Subject: Add environment variable expansion in link paths This feature was proposed by Brian Knobbs . --- dotbot/executor/linker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dotbot') diff --git a/dotbot/executor/linker.py b/dotbot/executor/linker.py index f0e94bc..5c12ea0 100644 --- a/dotbot/executor/linker.py +++ b/dotbot/executor/linker.py @@ -19,6 +19,8 @@ class Linker(Executor): def _process_links(self, links): success = True for destination, source in links.items(): + source = os.path.expandvars(source) + destination = os.path.expandvars(destination) if isinstance(source, dict): # extended config path = source['path'] -- cgit v1.2.3