From 73de569110d8954c522c49780e8527885d70e4b0 Mon Sep 17 00:00:00 2001 From: notify Date: Sun, 26 Mar 2023 17:46:54 +0800 Subject: [PATCH] make conf.py absolute --- docs/conf.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3262ac09..9c53dd18 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,9 +10,8 @@ # 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. # -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import os +fk_repo_path = os.path.abspath('.') # -- Project information ----------------------------------------------------- @@ -42,8 +41,8 @@ extensions = [ ] lua_source_path = [ - "../lua", - "../packages", + fk_repo_path + "/../lua", + fk_repo_path + "/../packages", ] lua_source_encoding = 'utf8'