From a1bb3de494f4a4b66056c743432d94f20afadbe5 Mon Sep 17 00:00:00 2001 From: Sandrro Date: Fri, 20 Sep 2024 14:07:57 +0300 Subject: [PATCH] fixed docs compilation --- docs/source/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7fba588..41c0839 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -8,8 +8,11 @@ import os import sys -folder = os.getcwd().split("\\docs")[0] -sys.path.append(folder) +#folder = os.getcwd().split("\\docs")[0] +#print(folder) +project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) +print(project_root) +sys.path.insert(0, project_root) project = 'sloyka'