summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
authorÁlvaro Mondéjar <mondejar1994@gmail.com>2020-05-16 13:36:56 +0200
committerÁlvaro Mondéjar <mondejar1994@gmail.com>2020-05-16 13:36:56 +0200
commit979472b5363fbb029fb3d845e19b3c91c778f2ac (patch)
treee85c2643f969f1ca3969455ff5c03ce72639d80c /sphinx/cmd/quickstart.py
parent97bc24500a7e62c34f92da2d53a36221fdd7c95d (diff)
downloadsphinx-git-979472b5363fbb029fb3d845e19b3c91c778f2ac.tar.gz
Resolve with absolute path casting.
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index 72434c18b..cad3c65e5 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -11,7 +11,6 @@
import argparse
import locale
import os
-import pathlib
import re
import sys
import time
@@ -358,7 +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"] = str(pathlib.Path(d['path']).resolve())
+ d["path"] = os.path.abspath(d['path'])
ensuredir(d['path'])
srcdir = path.join(d['path'], 'source') if d['sep'] else d['path']