summaryrefslogtreecommitdiff
path: root/dotbot
diff options
context:
space:
mode:
authorAnish Athalye <me@anishathalye.com>2015-05-12 20:04:42 -0400
committerAnish Athalye <me@anishathalye.com>2015-05-12 20:28:58 -0400
commitfd7f3b85514b3aca17afda51ff0ee22937388451 (patch)
tree74d592b635dfb92e39646bfd1c3b109574861dc4 /dotbot
parent53c26ba9e6ce2778c823efceb52340c40858e980 (diff)
Add environment variable expansion in link paths
This feature was proposed by Brian Knobbs <brian@redlattice.com>.
Diffstat (limited to 'dotbot')
-rw-r--r--dotbot/executor/linker.py2
1 files changed, 2 insertions, 0 deletions
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']