mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix py35 incompatibility with PosixPath
This commit is contained in:
@@ -358,7 +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()
|
||||
d["path"] = str(pathlib.Path(d['path']).resolve())
|
||||
ensuredir(d['path'])
|
||||
|
||||
srcdir = path.join(d['path'], 'source') if d['sep'] else d['path']
|
||||
|
||||
Reference in New Issue
Block a user