mirror of https://github.com/scrapy/scrapy.git
Replace os.path with pathlib in docs config
This commit is contained in:
parent
24a1d9acae
commit
4383f45299
|
|
@ -13,14 +13,13 @@
|
|||
|
||||
import sys
|
||||
from datetime import datetime
|
||||
from os import path
|
||||
from pathlib import Path
|
||||
|
||||
# If your extensions are in another directory, add it here. If the directory
|
||||
# is relative to the documentation root, use os.path.abspath to make it
|
||||
# absolute, like shown here.
|
||||
sys.path.append(path.join(path.dirname(__file__), "_ext"))
|
||||
sys.path.insert(0, path.dirname(path.dirname(__file__)))
|
||||
sys.path.append(str(Path(__file__).absolute().parent / "_ext"))
|
||||
sys.path.insert(0, str(Path(__file__).absolute().parent.parent))
|
||||
|
||||
|
||||
# General configuration
|
||||
|
|
|
|||
Loading…
Reference in New Issue