From b1c2ac0640d180beba710b8916deee75af0ef99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= Date: Sun, 17 Mar 2024 18:43:27 +0000 Subject: [PATCH] fix building documentation out of source tree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move importing pyngrok after altering `sys.path`. This itrival fix allows buid documentation without have `pyngrok` installed using only source tree. Signed-off-by: Tomasz Kłoczko --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 1cb03063..ac9f4869 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,8 +5,6 @@ import os import sys -from pyngrok import __version__ - # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, @@ -15,6 +13,8 @@ sys.path.insert(0, os.path.abspath("..")) +from pyngrok import __version__ + # -- Project information ----------------------------------------------------- project = "pyngrok"