diff --git a/epicpath/EpicPath.py b/epicpath/EpicPath.py index 7af38a5..8947b96 100644 --- a/epicpath/EpicPath.py +++ b/epicpath/EpicPath.py @@ -35,7 +35,8 @@ def __fspath__(self): # ---------------------------------------------------------------------------------------------------- def __getattr__(self, attr): - return getattr(self.p, attr) + p = object.__getattribute__(self, '_p') + return getattr(p, attr) def __str__(self): return str(self.p) @@ -127,6 +128,14 @@ def p(self, p): else: self._p = Path(str(p)) + @property + def path(self): + return self.p + + @path.setter + def path(self, p): + self.p = p + @property def str(self): """ diff --git a/setup.py b/setup.py index 5832495..7c2e729 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='epic-path', - version='0.0.3', + version='0.0.4', url='https://github.com/ValentinVignal/EpicPath.git', license='MIT', author='Valentin Vignal',