From 850693c1cf615d3636fcea8d773be0ef83bee3aa Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Tue, 11 Feb 2020 19:12:35 +0000 Subject: [PATCH] Added __path__ (#498) --- plumbum/path/local.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plumbum/path/local.py b/plumbum/path/local.py index d93cf5601..cad7efd6c 100644 --- a/plumbum/path/local.py +++ b/plumbum/path/local.py @@ -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)