From 5ddc83e3ff3e1223cebf83049c7c651c7d21a468 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 23 Mar 2022 14:37:04 -0700 Subject: [PATCH] Call expanduser in pathclass init. --- voussoirkit/pathclass.py | 1 + 1 file changed, 1 insertion(+) diff --git a/voussoirkit/pathclass.py b/voussoirkit/pathclass.py index 0011707..bce750a 100644 --- a/voussoirkit/pathclass.py +++ b/voussoirkit/pathclass.py @@ -143,6 +143,7 @@ class Path: path = os.fspath(path) if isinstance(path, str): + path = os.path.expanduser(path) path = os.path.abspath(path) self._absolute_path = path (drive, remainder) = os.path.splitdrive(path)