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:
Takeshi KOMIYA
2020-05-16 22:57:51 +09:00
committed by GitHub

View File

@@ -357,6 +357,7 @@ def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir:
d.setdefault('extensions', [])
d['copyright'] = time.strftime('%Y') + ', ' + d['author']
d["path"] = os.path.abspath(d['path'])
ensuredir(d['path'])
srcdir = path.join(d['path'], 'source') if d['sep'] else d['path']