Add current dir sys.path as well

This commit is contained in:
Liuyang Wan
2023-02-19 19:50:45 +08:00
parent 6540b76db0
commit 9c96faa702
+1
View File
@@ -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")