Skip to content
Snippets Groups Projects
Commit 3ca8184f authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

Expand ~ to user directory in path-like variables

parent aa7a6a31
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class Variable: ...@@ -40,7 +40,7 @@ class Variable:
assert var_type in ["file", "range"], "Unsupported variable type." assert var_type in ["file", "range"], "Unsupported variable type."
if var_type == "file": if var_type == "file":
directory = pathlib.Path(value_config["directory"]) directory = pathlib.Path(value_config["directory"]).expanduser()
assert directory.exists() and directory.is_dir() assert directory.exists() and directory.is_dir()
values = list(directory.iterdir()) values = list(directory.iterdir())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment