From 0a62b2f245708a161e45c2f7029afd28fba0af78 Mon Sep 17 00:00:00 2001 From: Eyal Reuveni Date: Mon, 15 Sep 2014 21:12:26 -0700 Subject: [PATCH] Add in expandvars to path normalization. --- eventually/cmdline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eventually/cmdline.py b/eventually/cmdline.py index a66aa26..9bacdc6 100644 --- a/eventually/cmdline.py +++ b/eventually/cmdline.py @@ -19,8 +19,8 @@ def get_config(base_dir): def _normalize_path(normalize_me, paths): # First, extract the path out of the paths config. extracted = paths.get('paths', normalize_me) - # Then, os.path.expanduser() it. - return os.path.expanduser(extracted) + # Then, os.path.expanduser() and os.path.expandvars() it. + return os.path.expandvars(os.path.expanduser(extracted)) def run_metric(program, cwd):