Skip to content

Commit

Permalink
Added __path__ (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
KOLANICH committed Feb 11, 2020
1 parent 529627f commit 850693c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plumbum/path/local.py
Expand Up @@ -58,6 +58,9 @@ def __new__(cls, *parts):
cls, os.path.normpath(os.path.join(*(str(p) for p in parts))))
return self

def __fspath__(self):
return self._path()

@property
def _path(self):
return str(self)
Expand Down

0 comments on commit 850693c

Please sign in to comment.