Call expanduser in pathclass init.
This commit is contained in:
parent
1026d4414c
commit
5ddc83e3ff
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue