Python pathlib.Path.expanduser() Examples
The following are 2
code examples of pathlib.Path.expanduser().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pathlib.Path
, or try the search function
.
Example #1
Source File: win32.py From thefuck with MIT License | 5 votes |
def _expanduser(self): return self.__class__(os.path.expanduser(str(self))) # pathlib's expanduser fails on windows, see http://bugs.python.org/issue19776
Example #2
Source File: unix.py From thefuck with MIT License | 5 votes |
def _expanduser(self): return self.__class__(os.path.expanduser(str(self)))