diff options
author | Álvaro Mondéjar <mondejar1994@gmail.com> | 2020-05-10 23:59:46 +0200 |
---|---|---|
committer | Álvaro Mondéjar <mondejar1994@gmail.com> | 2020-05-10 23:59:46 +0200 |
commit | 90dd745cea3d9c4f34db4ff9342bd0c596459469 (patch) | |
tree | 4a43fa67cae1a64b47a25b0f3aecb9f19e411bbf | |
parent | 1771bbb9277c3b629ac6e708c4c3f355e034c6cd (diff) | |
download | sphinx-git-90dd745cea3d9c4f34db4ff9342bd0c596459469.tar.gz |
Fix multiple directory creation on quickstart script called with nested relative path.
-rw-r--r-- | sphinx/cmd/quickstart.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index 0c9020bd5..626d07c66 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -11,6 +11,7 @@ import argparse import locale import os +import pathlib import re import sys import time @@ -357,6 +358,7 @@ def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir: d.setdefault('extensions', []) d['copyright'] = time.strftime('%Y') + ', ' + d['author'] + d["path"] = pathlib.Path(d['path']).resolve() ensuredir(d['path']) srcdir = path.join(d['path'], 'source') if d['sep'] else d['path'] |