Path.expanduser()
Return a new path with expanded ~
and ~user
constructs, as returned by os.path.expanduser()
:
1 2 3 | >>> p = PosixPath( '~/films/Monty Python' ) >>> p.expanduser() PosixPath( '/home/eric/films/Monty Python' ) |
New in version 3.5.
Please login to continue.