Allow for user relative paths
'~/' in a path currently doesnt work, you get the following error: [Errno 2] No such file or directory: u'/home/USER/folder/~/some/path/.yml' Signed-off-by: Nick H <nick.humrich@gmail.com>
This commit is contained in:
parent
83c514f838
commit
a372275c6e
2 changed files with 22 additions and 1 deletions
|
|
@ -499,7 +499,7 @@ def split_label(label):
|
|||
|
||||
|
||||
def expand_path(working_dir, path):
|
||||
return os.path.abspath(os.path.join(working_dir, path))
|
||||
return os.path.abspath(os.path.join(working_dir, os.path.expanduser(path)))
|
||||
|
||||
|
||||
def to_list(value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue