From 09c1f3b9fd9ef9696aef20035fc344e257d264d9 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Tue, 31 Oct 2023 06:03:20 +0100 Subject: [PATCH] docs: use os.pardir I'm not really sure if this ever matters in real-life, but os.pardir exists and we should probably use it instead of hard-coding it to '..'. Fixes: 67485efd654 ("docs: prepare for hawkmoth") Reviewed-by: Daniel Stone Reviewed-by: Eric Engestrom Part-of: --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 0e7e21b2e02..a5df3b8f1bf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -218,7 +218,7 @@ graphviz_output_format = 'svg' # -- Options for hawkmoth ------------------------------------------------- -hawkmoth_root = os.path.abspath('..') +hawkmoth_root = os.path.abspath(os.pardir) hawkmoth_clang = [ '-Idocs/header-stubs/', '-Iinclude/',