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
commit 9091a60f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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']