diff options
| author | Georg Brandl <georg@python.org> | 2014-03-01 08:14:06 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-03-01 08:14:06 +0100 |
| commit | 8dacc522bc3004d6a22eef5fce71272798ffe778 (patch) | |
| tree | 4d40abd0db4160375c174762b7604edd0223dc3f /sphinx | |
| parent | df4c6f6180b6edd1cabfa6d41c0d89dd21b75015 (diff) | |
| download | sphinx-8dacc522bc3004d6a22eef5fce71272798ffe778.tar.gz | |
Accept "~" shorthand in quickstart paths.
Diffstat (limited to 'sphinx')
| -rw-r--r-- | sphinx/quickstart.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index a57006fd..3c821ebc 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -922,6 +922,7 @@ class ValidationError(Exception): """Raised for validation errors.""" def is_path(x): + x = path.expanduser(x) if path.exists(x) and not path.isdir(x): raise ValidationError("Please enter a valid path name.") return x |
