mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Fix: always returns an absolute path
This commit is contained in:
parent
b4764ed903
commit
44e03ae50e
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue