Fix: always returns an absolute path

This commit is contained in:
Eduardo Cuducos 2021-10-25 14:04:30 -04:00
parent b4764ed903
commit 44e03ae50e

View file

@ -400,7 +400,8 @@ class PathValue(Value):
value = Path(value).expanduser()
if self.check_exists and not value.exists():
raise ValueError('Path {0!r} does not exist.'.format(value))
return value.absolute() if self.use_pathlib else str(value)
value = value.absolute()
return value if self.use_pathlib else str(value)
class SecretValue(Value):