mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7653 from mondeja/multiple-dir-relpath-quickstart
Fix multiple directory creation on quickstart script with nested relpath.
This commit is contained in:
commit
9091a60f4d
@ -357,6 +357,7 @@ def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir:
|
|||||||
d.setdefault('extensions', [])
|
d.setdefault('extensions', [])
|
||||||
d['copyright'] = time.strftime('%Y') + ', ' + d['author']
|
d['copyright'] = time.strftime('%Y') + ', ' + d['author']
|
||||||
|
|
||||||
|
d["path"] = os.path.abspath(d['path'])
|
||||||
ensuredir(d['path'])
|
ensuredir(d['path'])
|
||||||
|
|
||||||
srcdir = path.join(d['path'], 'source') if d['sep'] else d['path']
|
srcdir = path.join(d['path'], 'source') if d['sep'] else d['path']
|
||||||
|
Loading…
Reference in New Issue
Block a user