Skip to content

Commit

Permalink
Expand ~ in include paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbez committed May 20, 2016
1 parent d9016c2 commit d382246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/tools/filetools.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def expand_glob_paths(glob_paths):
"""Expand specified glob paths to a list of unique non-glob paths to only files."""
paths = []
for glob_path in glob_paths:
paths.extend([f for f in glob.glob(glob_path) if os.path.isfile(f)])
paths.extend([f for f in glob.glob(os.path.expanduser(glob_path)) if os.path.isfile(f)])

return nub(paths)

Expand Down

0 comments on commit d382246

Please sign in to comment.