Replace os.path with pathlib in docs config

This commit is contained in:
Eugenio Lacuesta 2020-04-10 16:49:14 -03:00
parent 24a1d9acae
commit 4383f45299
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
1 changed files with 2 additions and 3 deletions

View File

@ -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