From 9c96faa702c5c050f50d5d9e46eaaed2e02d8a00 Mon Sep 17 00:00:00 2001 From: Liuyang Wan Date: Sun, 19 Feb 2023 19:50:45 +0800 Subject: [PATCH] Add current dir sys.path as well --- doc/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/conf.py b/doc/conf.py index 0dd2e847..8b86fabe 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -35,6 +35,7 @@ import sys # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath("..")) +sys.path.insert(0, os.path.abspath(".")) from importlib.metadata import version # noqa: E402, isort:skip setupVersion = version("pygithub")