Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Add in expandvars to path normalization. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eventually/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down