diff --git a/vdirsyncer/utils.py b/vdirsyncer/utils.py index 2e0fd9ce..afad63c5 100644 --- a/vdirsyncer/utils.py +++ b/vdirsyncer/utils.py @@ -20,9 +20,9 @@ def expand_path(p: str) -> str: - """Expand $HOME in a path and normalise slashes.""" + """Expand $HOME/~(user) and environment variables in a path.""" p = os.path.expanduser(p) - p = os.path.normpath(p) + p = os.path.expandvars(p) return p