Accept "~" shorthand in quickstart paths.

This commit is contained in:
Georg Brandl 2014-03-01 08:14:06 +01:00
parent cbf13620e2
commit b782a15e74

View File

@ -922,6 +922,7 @@ class ValidationError(Exception):
"""Raised for validation errors.""" """Raised for validation errors."""
def is_path(x): def is_path(x):
x = path.expanduser(x)
if path.exists(x) and not path.isdir(x): if path.exists(x) and not path.isdir(x):
raise ValidationError("Please enter a valid path name.") raise ValidationError("Please enter a valid path name.")
return x return x