mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Accept "~" shorthand in quickstart paths.
This commit is contained in:
parent
cbf13620e2
commit
b782a15e74
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user