diff options
-rw-r--r-- | docs/conf.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 94246fe4..fb04d245 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,6 +19,8 @@ logger = sphinx.util.logging.getLogger(__name__) # Handle the path not being set correctly in actions. sys.path.insert(0, Path("..").resolve()) +PROJECT_ROOT = Path(__file__).parent.parent +sys.path.insert(0, str(PROJECT_ROOT.absolute())) from docs import utils # noqa: E402 @@ -30,9 +32,6 @@ author = "Python Discord" REPO_LINK = "https://github.com/python-discord/bot-core" -PROJECT_ROOT = Path(__file__).parent.parent -sys.path.insert(0, str(PROJECT_ROOT.absolute())) - # The full version, including alpha/beta/rc tags release = version = tomli.loads( (PROJECT_ROOT / "pyproject.toml").read_text(encoding="utf-8") |