Call expanduser in pathclass init.

This commit is contained in:
voussoir 2022-03-23 14:37:04 -07:00
parent 1026d4414c
commit 5ddc83e3ff
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -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)