conftypes: Expand user in Directory

This commit is contained in:
Florian Bruhin 2014-08-05 18:47:42 +02:00
parent 3b93f6121b
commit 857533aca7

View File

@ -795,6 +795,7 @@ class Directory(BaseType):
return
else:
raise ValidationError(value, "may not be empty!")
value = os.path.expanduser(value)
if not os.path.isdir(value):
raise ValidationError(value, "must be a valid directory!")
if not os.path.isabs(value):